Skip to content

Commit

Permalink
fix : lint warnings of var declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
svenburkard committed Jul 19, 2022
1 parent 16aa20b commit e07ef0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/mongodb/mongostat.go
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,8 @@ func NewStatLine(oldMongo, newMongo MongoStatus, key string, all bool, sampleSec
}

// Prepartions for the average health state of the replica-set
var replMemberCount int = len(newReplStat.Members)
var replMemberHealthyCount int = 0
replMemberCount := len(newReplStat.Members)
replMemberHealthyCount := 0

// Second for-loop is needed, because of break-construct above
for _, member := range newReplStat.Members {
Expand Down

0 comments on commit e07ef0a

Please sign in to comment.