Skip to content

Commit 2781cc2

Browse files
committed
Apply gofmt
1 parent 1578820 commit 2781cc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/src/bashbrew/docker.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ import (
1818
)
1919

2020
type dockerfileMetadata struct {
21-
StageFroms []string // every image "FROM" instruction value (or the parent stage's FROM value in the case of a named stage)
22-
StageNames []string // the name of any named stage (in order)
21+
StageFroms []string // every image "FROM" instruction value (or the parent stage's FROM value in the case of a named stage)
22+
StageNames []string // the name of any named stage (in order)
2323
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
2424

25-
Froms []string // every "FROM" or "COPY --from=xxx" value (minus named and/or numbered stages in the case of "--from=")
25+
Froms []string // every "FROM" or "COPY --from=xxx" value (minus named and/or numbered stages in the case of "--from=")
2626
}
2727

2828
// 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)
118118
// ignore blank lines and comments
119119
continue
120120
}
121-
line = line[0:len(line)-1]+nextLine
121+
line = line[0:len(line)-1] + nextLine
122122
}
123123

124124
fields := strings.Fields(line)

0 commit comments

Comments
 (0)