mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +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"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
"log/slog"
|
||||
"sync"
|
||||
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ func (t *mockT) Logf(format string, args ...any) {
|
|||
// we could gate this operation in a mutex, but because testlogger
|
||||
// only calls Logf with its internal mutex held, we just write output here
|
||||
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)
|
||||
}
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue