Fix unnecessary calls to Printf
shubhendra authored 3 years ago
Mark Sagi-Kazar committed 2 years ago
|
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"]
|
181 | 181 |
func (h *Histogram) Print(w io.Writer) {
|
182 | 182 |
h.h.RLock()
|
183 | 183 |
defer h.h.RUnlock()
|
184 | |
fmt.Fprintf(w, h.h.String())
|
|
184 |
fmt.Fprint(w, h.h.String())
|
185 | 185 |
}
|
186 | 186 |
|
187 | 187 |
// safeHistogram exists as gohistogram.Histogram is not goroutine-safe.
|