Skip to content

Commit

Permalink
chore: remove unnecessary type assertion (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
frecks committed Nov 24, 2021
1 parent 1d12a32 commit 13a5495
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions wrapcheck/wrapcheck.go
Expand Up @@ -94,10 +94,6 @@ func run(cfg WrapcheckConfig) func(*analysis.Pass) (interface{}, error) {
return func(pass *analysis.Pass) (interface{}, error) {
for _, file := range pass.Files {
ast.Inspect(file, func(n ast.Node) bool {
if _, ok := n.(*ast.AssignStmt); ok {
return true
}

ret, ok := n.(*ast.ReturnStmt)
if !ok {
return true
Expand Down

0 comments on commit 13a5495

Please sign in to comment.