Skip to content

Commit 13a5495

Browse files
authored
chore: remove unnecessary type assertion (#23)
1 parent 1d12a32 commit 13a5495

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

wrapcheck/wrapcheck.go

-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ func run(cfg WrapcheckConfig) func(*analysis.Pass) (interface{}, error) {
9494
return func(pass *analysis.Pass) (interface{}, error) {
9595
for _, file := range pass.Files {
9696
ast.Inspect(file, func(n ast.Node) bool {
97-
if _, ok := n.(*ast.AssignStmt); ok {
98-
return true
99-
}
100-
10197
ret, ok := n.(*ast.ReturnStmt)
10298
if !ok {
10399
return true

0 commit comments

Comments
 (0)