Skip to content

Commit 82145fc

Browse files
committed
SA5010: modernize code
1 parent a2bad01 commit 82145fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staticcheck/sa5010/sa5010.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ either.`,
4848

4949
var Analyzer = SCAnalyzer.Analyzer
5050

51-
func run(pass *analysis.Pass) (interface{}, error) {
51+
func run(pass *analysis.Pass) (any, error) {
5252
type entry struct {
5353
l, r *types.Func
5454
}
@@ -74,7 +74,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
7474
}
7575

7676
ms := msc.MethodSet(left)
77-
for i := 0; i < righti.NumMethods(); i++ {
77+
for i := range righti.NumMethods() {
7878
mr := righti.Method(i).Origin()
7979
sel := ms.Lookup(mr.Pkg(), mr.Name())
8080
if sel == nil {

0 commit comments

Comments
 (0)