Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fix nil pointer (#5)
Browse files Browse the repository at this point in the history
* I fix nil pointer reference error.

* I fix nil pointer reference error.
  • Loading branch information
sivchari committed May 13, 2022
1 parent c5661ef commit 0b3726d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nosnakecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func run(pass *analysis.Pass) (interface{}, error) {

go func() {
defer wg.Done()
if n.Body.List == nil {
if n.Body == nil {
return
}
for _, list := range n.Body.List {
Expand Down

0 comments on commit 0b3726d

Please sign in to comment.