Skip to content

Commit 0df4b46

Browse files
committed
Fix formatting in restrictpkg.go to improve error message clarity
1 parent a91b947 commit 0df4b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/restrictpkg/restrictpkg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
4747
}
4848
for _, p := range packages {
4949
if n.Path.Value == fmt.Sprintf(`"%s"`, p) {
50-
pass.Reportf(n.Pos(), fmt.Sprintf("%s package must not be imported", p))
50+
pass.Reportf(n.Pos(), "%s package must not be imported", p)
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)