From 6a85aecfb749d59e07b9b8027a9a1bcc6b5378c6 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 12 Jul 2018 22:37:03 +0400 Subject: [PATCH] fix linter issues --- libs/pubsub/query/query.peg.go | 1 + types/validator_set.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/pubsub/query/query.peg.go b/libs/pubsub/query/query.peg.go index c3ac726b9..c1cc60aa9 100644 --- a/libs/pubsub/query/query.peg.go +++ b/libs/pubsub/query/query.peg.go @@ -1,3 +1,4 @@ +// nolint package query //go:generate peg -inline -switch query.peg diff --git a/types/validator_set.go b/types/validator_set.go index 25355e72f..60fc2d83b 100644 --- a/types/validator_set.go +++ b/types/validator_set.go @@ -39,7 +39,7 @@ func NewValidatorSet(vals []*Validator) *ValidatorSet { Validators: validators, } - if vals != nil && len(vals) > 0 { + if len(vals) > 0 { vs.IncrementAccum(1) }