mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
cmd/workload: fix lint
This commit is contained in:
parent
2a2a902aab
commit
bfa01c70e2
1 changed files with 5 additions and 5 deletions
|
|
@ -370,14 +370,14 @@ func (s *filterTestGen) writeQueries() {
|
|||
}
|
||||
|
||||
// writeQueries serializes the generated errors to the error file.
|
||||
func (f *filterTestGen) writeErrors() {
|
||||
file, err := os.Create(f.errorFile)
|
||||
func (s *filterTestGen) writeErrors() {
|
||||
file, err := os.Create(s.errorFile)
|
||||
if err != nil {
|
||||
exit(fmt.Errorf("Error creating filter error file %s: %v", f.errorFile, err))
|
||||
exit(fmt.Errorf("Error creating filter error file %s: %v", s.errorFile, err))
|
||||
return
|
||||
}
|
||||
json.NewEncoder(file).Encode(f.errors)
|
||||
file.Close()
|
||||
defer file.Close()
|
||||
json.NewEncoder(file).Encode(s.errors)
|
||||
}
|
||||
|
||||
func mustGetFinalizedBlock(ec *ethclient.Client) int64 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue