From 0b3726d368390e3adda797b721fa72cd918cf3a6 Mon Sep 17 00:00:00 2001 From: sivchari Date: Fri, 13 May 2022 18:09:15 +0900 Subject: [PATCH] Fix nil pointer (#5) * I fix nil pointer reference error. * I fix nil pointer reference error. --- nosnakecase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nosnakecase.go b/nosnakecase.go index bf42b1b..6ce6e29 100644 --- a/nosnakecase.go +++ b/nosnakecase.go @@ -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 {