From ebd6873cbbf669590ef2946ee98c55ed194cb150 Mon Sep 17 00:00:00 2001 From: oliverpool Date: Sun, 5 Feb 2017 22:01:34 +0100 Subject: [PATCH] Useless initialization --- metrics.go | 1 - 1 file changed, 1 deletion(-) diff --git a/metrics.go b/metrics.go index 3ee5a5d..2e0637a 100644 --- a/metrics.go +++ b/metrics.go @@ -99,7 +99,6 @@ func (e *ErrorsTotalMap) incError(err HTTPError) { // We ensure that the ptr wasn't created in the meantime if ptr, ok = e.m[err]; !ok { ptr = new(uint64) - *ptr = 0 e.m[err] = ptr } e.Unlock()