Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
hinshun committed Apr 9, 2021
1 parent 2eba3f3 commit 065b28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/builtin_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func (l Label) Call(ctx context.Context, cln *client.Client, ret Register, opts
// previous history element.
numHistory := len(fs.Image.History)
if numHistory > 0 && strings.HasPrefix(fs.Image.History[numHistory-1].CreatedBy, "LABEL") {
fs.Image.History[numHistory-1].CreatedBy = fmt.Sprintf("%s %s=%s", fs.Image.History[numHistory-1].CreatedBy, key, value)
fs.Image.History[numHistory-1].CreatedBy += fmt.Sprintf(" %s=%s", key, value)
} else {
commitHistory(fs.Image, true, "LABEL %s=%s", key, value)
}
Expand Down

0 comments on commit 065b28e

Please sign in to comment.