mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Less naked returns (#25713)
just a step towards #25655 and some related refactoring
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user