From 2781cc262172a30fe86316498186f3fdc1106ade Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 7 Jun 2019 12:36:19 -0700 Subject: [PATCH] Apply gofmt --- go/src/bashbrew/docker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go/src/bashbrew/docker.go b/go/src/bashbrew/docker.go index 3283ce4..47577a9 100644 --- a/go/src/bashbrew/docker.go +++ b/go/src/bashbrew/docker.go @@ -18,11 +18,11 @@ import ( ) type dockerfileMetadata struct { - StageFroms []string // every image "FROM" instruction value (or the parent stage's FROM value in the case of a named stage) - StageNames []string // the name of any named stage (in order) + StageFroms []string // every image "FROM" instruction value (or the parent stage's FROM value in the case of a named stage) + StageNames []string // the name of any named stage (in order) StageNameFroms map[string]string // map of stage names to FROM values (or the parent stage's FROM value in the case of a named stage), useful for resolving stage names to FROM values - Froms []string // every "FROM" or "COPY --from=xxx" value (minus named and/or numbered stages in the case of "--from=") + Froms []string // every "FROM" or "COPY --from=xxx" value (minus named and/or numbered stages in the case of "--from=") } // this returns the "FROM" value for the last stage (which essentially determines the "base" for the final published image) @@ -118,7 +118,7 @@ func parseDockerfileMetadata(dockerfile io.Reader) (*dockerfileMetadata, error) // ignore blank lines and comments continue } - line = line[0:len(line)-1]+nextLine + line = line[0:len(line)-1] + nextLine } fields := strings.Fields(line)