Skip to content

Commit

Permalink
Remove incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
navijation committed Dec 30, 2023
1 parent cbba3b8 commit 7539055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7539055

Please sign in to comment.