Simplify incrementation

This commit is contained in:
Julian Kornberger 2017-04-17 20:42:06 +02:00
parent dbaa19d13a
commit ecfd860d15

View File

@ -50,7 +50,6 @@ func NewGlobalStats(nodes *Nodes) (result *GlobalStats) {
// if the value is not empty
func (m CounterMap) Increment(key string) {
if key != "" {
val := m[key]
m[key] = val + 1
m[key]++
}
}