Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ljakimczuk committed May 8, 2020
1 parent 2b6019a commit 7839dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dockerfile/dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Parse(b []byte) ([]instructions.Stage, []instructions.ArgCommand, error) {

// expandNestedArgs tries to resolve nested ARG value against the previously defined ARGs
func expandNested(metaArgs []instructions.ArgCommand, buildArgs []string) ([]instructions.ArgCommand, error) {
prevArgs := make([]string,0)
prevArgs := make([]string, 0)
for i := range metaArgs {
arg := metaArgs[i]
v := arg.Value
Expand All @@ -113,7 +113,7 @@ func expandNested(metaArgs []instructions.ArgCommand, buildArgs []string) ([]ins
if err != nil {
return nil, err
}
prevArgs = append(prevArgs, arg.Key + "=" + val)
prevArgs = append(prevArgs, arg.Key+"="+val)
arg.Value = &val
metaArgs[i] = arg
}
Expand Down

0 comments on commit 7839dad

Please sign in to comment.