Skip to content

Commit e06eaaa

Browse files
committed
Use any instead of empty interface for analyzers
1 parent 04dc94b commit e06eaaa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

log/injection/injection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func imports(pass *analysis.Pass, pkgs ...string) bool {
108108
return imported
109109
}
110110

111-
func run(pass *analysis.Pass) (interface{}, error) {
111+
func run(pass *analysis.Pass) (any, error) {
112112
// Require the log package is imported in the
113113
// program being analyzed before running the analysis.
114114
//

sql/injection/injection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ var supportedSQLPackages = []string{
260260
"github.com/lann/squirrel",
261261
}
262262

263-
func run(pass *analysis.Pass) (interface{}, error) {
263+
func run(pass *analysis.Pass) (any, error) {
264264
// Require at least one supported SQL package to be imported before
265265
// running the analysis. This avoids wasting time analyzing programs
266266
// that do not use SQL.

xss/xss.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func imports(pass *analysis.Pass, pkgs ...string) bool {
4747
return imported
4848
}
4949

50-
func run(pass *analysis.Pass) (interface{}, error) {
50+
func run(pass *analysis.Pass) (any, error) {
5151
// Require the log package is imported in the
5252
// program being analyzed before running the analysis.
5353
//

0 commit comments

Comments
 (0)