From 04e971fa0df363d69f68f4c0a1b6d368f41baac5 Mon Sep 17 00:00:00 2001 From: Edgar Aroutiounian Date: Tue, 12 May 2020 17:28:55 -0700 Subject: [PATCH] [validation] break not used correct - need return or give label, i choose return --- validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation.go b/validation.go index 9fe9331..364591d 100644 --- a/validation.go +++ b/validation.go @@ -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.