Skip to content

Commit

Permalink
ISSUE #439 ci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cvgw committed Oct 25, 2019
1 parent ec2e770 commit 0ce287d
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 @@ -134,9 +134,9 @@ func stripEnclosingQuotes(metaArgs []instructions.ArgCommand) ([]instructions.Ar
fmt.Printf("val %s\n", val)
if (val[0] == dbl && val[len(val)-1] == dbl) || (val[0] == sgl && val[len(val)-1] == sgl) {
val = val[1 : len(val)-1]
} else if val[0:2] == `\"` && val[len(val)-2:len(val)] == `\"` {
} else if val[:2] == `\"` && val[len(val)-2:] == `\"` {
continue
} else if val[0:2] == `\'` && val[len(val)-2:len(val)] == `\'` {
} else if val[:2] == `\'` && val[len(val)-2:] == `\'` {
continue
} else if val[0] == dbl || val[0] == sgl || val[len(val)-1] == dbl || val[len(val)-1] == sgl {
return nil, errors.New("quotes wrapping arg values must be matched")
Expand Down

0 comments on commit 0ce287d

Please sign in to comment.