diff --git a/frontend/dockerfile/parser/line_parsers.go b/frontend/dockerfile/parser/line_parsers.go index b8792708..8cfd39bb 100644 --- a/frontend/dockerfile/parser/line_parsers.go +++ b/frontend/dockerfile/parser/line_parsers.go @@ -71,7 +71,7 @@ func parseWords(rest string) []string { if unicode.IsSpace(ch) { // skip spaces continue } - phase = inWord // found it, fall thru + phase = inWord // found it, fall through } if (phase == inWord || phase == inQuote) && (pos == len(rest)) { if blankOK || len(word) > 0 { diff --git a/frontend/dockerfile/parser/utils.go b/frontend/dockerfile/parser/utils.go index 352d7a7e..b21eb62a 100644 --- a/frontend/dockerfile/parser/utils.go +++ b/frontend/dockerfile/parser/utils.go @@ -118,7 +118,7 @@ func extractBuilderFlags(line string) (string, []string, error) { return line[pos:], words, nil } - phase = inWord // found someting with "--", fall thru + phase = inWord // found someting with "--", fall through } if (phase == inWord || phase == inQuote) && (pos == len(line)) { if word != "--" && (blankOK || len(word) > 0) {