Skip to content

Commit

Permalink
else statement can be ommited
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 20, 2023
1 parent 84e32d5 commit 5cbd35e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser/parseutil/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ func astPaths(reader *astutil.NodeReader, pos token.Pos) []*astutil.NodeReader {
if list, ok := reader.CurNode.(ast.TokenList); ok {
newReader := astutil.NewNodeReader(list)
return append(paths, astPaths(newReader, pos)...)
} else {
return paths
}
return paths
}
}
return paths
Expand Down

0 comments on commit 5cbd35e

Please sign in to comment.