[validation] break not used correct - need return or give label, i choose return

This commit is contained in:
Edgar Aroutiounian 2020-05-12 17:28:55 -07:00 committed by vyzo
parent fedb87bd57
commit 04e971fa0d

View File

@ -382,7 +382,7 @@ func (v *validation) validateTopic(vals []*topicVal, src peer.ID, msg *Message)
case ValidationAccept:
case ValidationReject:
result = ValidationReject
break
return result
case ValidationIgnore:
// throttled validation has the same effect, but takes precedence over Ignore as it is not
// known whether the throttled validator would have signaled rejection.