mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log: lint nits
This commit is contained in:
parent
b7933d28e7
commit
05d7169c8b
1 changed files with 1 additions and 7 deletions
|
|
@ -72,10 +72,6 @@ func BenchmarkJSONHandler(b *testing.B) {
|
|||
}
|
||||
|
||||
func benchmarkLogger(b *testing.B, l Logger) {
|
||||
type custom struct {
|
||||
A string
|
||||
B int8
|
||||
}
|
||||
var (
|
||||
bb = make([]byte, 10)
|
||||
tt = time.Now()
|
||||
|
|
@ -141,7 +137,6 @@ func TestLoggerOutput(t *testing.T) {
|
|||
if !bytes.Equal([]byte(have)[25:], []byte(want)[25:]) {
|
||||
t.Errorf("Error\nhave: %q\nwant: %q", have, want)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const termTimeFormat = "01-02|15:04:05.000"
|
||||
|
|
@ -151,7 +146,6 @@ func BenchmarkAppendFormat(b *testing.B) {
|
|||
b.Run("fmt time.Format", func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
fmt.Fprintf(io.Discard, "%s", now.Format(termTimeFormat))
|
||||
|
||||
}
|
||||
})
|
||||
b.Run("time.AppendFormat", func(b *testing.B) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue