Skip to content

Commit

Permalink
use fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xwa153 committed Nov 15, 2024
1 parent 2f39c20 commit 6730cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func redactinator(used *dep.Set, b *Brain, err error) error {
}
}
}
return errors.New(strings.NewReplacer(pairs...).Replace(err.Error()))
return fmt.Errorf(strings.NewReplacer(pairs...).Replace(err.Error()))

Check failure on line 301 in template/template.go

View workflow job for this annotation

GitHub Actions / Run linters

printf: non-constant format string in call to fmt.Errorf (govet)
}

// funcMapInput is input to the funcMap, which builds the template functions.
Expand Down

0 comments on commit 6730cbb

Please sign in to comment.