diff --git a/agreement/voteAggregator.go b/agreement/voteAggregator.go index dbbc83c800..30c51f7e06 100644 --- a/agreement/voteAggregator.go +++ b/agreement/voteAggregator.go @@ -250,7 +250,7 @@ func voteFresh(proto protocol.ConsensusVersion, freshData freshnessData, vote un } if freshData.PlayerRound+1 == vote.R.Round { - if (vote.R.Period > 0) { + if vote.R.Period > 0 { return fmt.Errorf("filtered future vote from bad period: player.Round=%v; vote.(Round,Period,Step)=(%v,%v,%v)", freshData.PlayerRound, vote.R.Round, vote.R.Period, vote.R.Step) } // pipeline votes from next round period 0 diff --git a/util/metrics/counter.go b/util/metrics/counter.go index 850be3a630..0b9d18c009 100644 --- a/util/metrics/counter.go +++ b/util/metrics/counter.go @@ -190,5 +190,4 @@ func (counter *Counter) AddMetric(values map[string]string) { values[counter.name] = strconv.FormatFloat(sum, 'f', -1, 32) } - }