Less naked returns (#25713)

just a step towards  #25655

and some related refactoring
This commit is contained in:
6543 authored and GitHub committed 2023-07-07 05:31:56 +00:00
1 parent b1eb1676aa
commit 8995046110
32 files changed
+254 -239

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ func IsUserHiddenCommentTypeGroupChecked(group string, hiddenCommentTypes *big.I
commentTypes, ok := hiddenCommentTypeGroups[group]
if !ok {
log.Critical("the group map for hidden comment types is out of sync, unknown group: %v", group)
return
return false
}
if hiddenCommentTypes == nil {
return false