Skip to content

Commit

Permalink
address linter complaint -> use fmt.Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstr committed May 29, 2020
1 parent 6b5539e commit c4b119c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docker/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ func Load(fileName string) (*Config, error) {

if fileName != DefaultDockerJSON {
errStr := "Invalid auth for Docker registry: %s\nBase64-encoded string is wrong: %s (%s)\n"
return nil, errors.New(
fmt.Sprintf(
errStr,
registry,
a.B64Auth,
authenticationToken,
),
return nil, fmt.Errorf(
errStr,
registry,
a.B64Auth,
authenticationToken,
)
}
}
Expand Down

0 comments on commit c4b119c

Please sign in to comment.