diff --git a/switch.go b/switch.go index 96c69df..ca2eb60 100644 --- a/switch.go +++ b/switch.go @@ -106,7 +106,7 @@ func switchChecker(pass *analysis.Pass, cfg switchConfig, generated boolCache, c } if sw.Tag == nil { - return true, resultNoSwitchTag // never possible for valid Go program? + return true, resultNoSwitchTag } t := pass.TypesInfo.Types[sw.Tag]