Skip to content

Commit

Permalink
fix: brew strings.HasPrefix args order (#949)
Browse files Browse the repository at this point in the history
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
  • Loading branch information
quasilyte authored and caarlos0 committed Feb 4, 2019
1 parent 7e79db1 commit ba09765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pipe/brew/brew.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func ghFormulaPath(folder, filename string) string {

func getFormat(ctx *context.Context) string {
for _, override := range ctx.Config.Archive.FormatOverrides {
if strings.HasPrefix("darwin", override.Goos) {
if strings.HasPrefix(override.Goos, "darwin") {
return override.Format
}
}
Expand Down

0 comments on commit ba09765

Please sign in to comment.