Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions identical/identical.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
return nil, nil
}

func (r *runner) debugln(msg string, args ...interface{}) {
func (r *runner) debugln(a ...any) {
if r.debug {
fmt.Printf(msg+"\n", args...)
fmt.Println(a...)
}
}
2 changes: 1 addition & 1 deletion opaque/opaque.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type runner struct {
debug bool
}

func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
func (r *runner) run(pass *analysis.Pass) (any, error) {
inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector)

// Find function declarations that return an interface
Expand Down
2 changes: 1 addition & 1 deletion unused/unused.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type runner struct {
exclude string
}

func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
func (r *runner) run(pass *analysis.Pass) (any, error) {
excludes := strings.Split(r.exclude, ",")
if slices.Contains(excludes, pass.Pkg.Path()) {
return nil, nil
Expand Down