waku/v2/protocol/rln/waku_rln_relay.go
Method WakuRLNRelay.ValidateMessage
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (rlnRelay *WakuRLNRelay) ValidateMessage(msg *pb.WakuMessage, optionalTime *time.Time) (messageValidationResult, error) {
if msg == nil {
return validationError, errors.New("nil message")
}
Method WakuRLNRelay.ValidateMessage
has 12 return statements (exceeds 4 allowed). Open
Open
func (rlnRelay *WakuRLNRelay) ValidateMessage(msg *pb.WakuMessage, optionalTime *time.Time) (messageValidationResult, error) {
if msg == nil {
return validationError, errors.New("nil message")
}