Skip to content

Commit

Permalink
chore: fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jan 8, 2024
1 parent 81d6630 commit 906f3d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions txpool/blocklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package txpool
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"io/ioutil"
Expand All @@ -31,7 +30,7 @@ type blocklist struct {
func (bl *blocklist) Load(path string) error {
path = filepath.Clean(path)
if _, err := os.Stat(path); os.IsNotExist(err) {
return errors.New(fmt.Sprintf("the path [%v] does not exist", path))
return fmt.Errorf("the path [%v] does not exist", path)
}
file, err := os.Open(path)
if err != nil {
Expand Down

0 comments on commit 906f3d8

Please sign in to comment.