Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sonatard committed Sep 12, 2024
1 parent ca3536a commit 0032e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ngfunc/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ func (n *Report) Message() string {

func report(pass *analysis.Pass, reports []*Report) {
for _, report := range reports {
pass.Reportf(report.Pos(), report.Message())
pass.Reportf(report.Pos(), "%s", report.Message())
}
}
2 changes: 1 addition & 1 deletion reqwithoutctx/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ func (n *Report) Message() string {

func report(pass *analysis.Pass, reports []*Report) {
for _, report := range reports {
pass.Reportf(report.Pos(), report.Message())
pass.Reportf(report.Pos(), "%s", report.Message())
}
}

0 comments on commit 0032e66

Please sign in to comment.