Codebase list golang-github-go-kit-kit / abd72ba
Fix unnecessary calls to Printf shubhendra authored 3 years ago Mark Sagi-Kazar committed 2 years ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 version = 1
1
2 test_patterns = ["**/*_test.go"]
3
4 exclude_patterns = ["examples/**"]
5
6 [[analyzers]]
7 name = "go"
8 enabled = true
9
10 [analyzers.meta]
11 import_paths = ["github.com/go-kit/kit"]
181181 func (h *Histogram) Print(w io.Writer) {
182182 h.h.RLock()
183183 defer h.h.RUnlock()
184 fmt.Fprintf(w, h.h.String())
184 fmt.Fprint(w, h.h.String())
185185 }
186186
187187 // safeHistogram exists as gohistogram.Histogram is not goroutine-safe.