mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
fix lint
This commit is contained in:
parent
32a5f9b535
commit
1a700027ce
2 changed files with 3 additions and 3 deletions
|
|
@ -21,9 +21,10 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"github.com/ethereum/go-ethereum/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ func (t *mockT) Logf(format string, args ...any) {
|
||||||
// we could gate this operation in a mutex, but because testlogger
|
// we could gate this operation in a mutex, but because testlogger
|
||||||
// only calls Logf with its internal mutex held, we just write output here
|
// only calls Logf with its internal mutex held, we just write output here
|
||||||
var lineBuf bytes.Buffer
|
var lineBuf bytes.Buffer
|
||||||
if _, err := fmt.Fprintf(&lineBuf, fmt.Sprintf(format, args...)); err != nil {
|
if _, err := fmt.Fprintf(&lineBuf, format, args...); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
// The timestamp is locale-dependent, so we want to trim that off
|
// The timestamp is locale-dependent, so we want to trim that off
|
||||||
|
|
@ -67,5 +67,4 @@ func TestLogging(t *testing.T) {
|
||||||
fmt.Printf("'%s'\n", tc.expected)
|
fmt.Printf("'%s'\n", tc.expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue