comparing it with '==' (as in err == xxxErr) is no longer the best pr

This commit is contained in:
19byte 2024-03-06 21:55:12 +08:00
parent e91824491e
commit 50519cf8a4
8 changed files with 0 additions and 8 deletions

View file

@ -17,7 +17,6 @@
package keystore package keystore
import ( import (
"errors"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/rand" "math/rand"
"os" "os"

View file

@ -19,7 +19,6 @@ package rawdb
import ( import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"errors"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/rand" "math/rand"

View file

@ -18,7 +18,6 @@ package snapshot
import ( import (
"bytes" "bytes"
"errors"
"github.com/pkg/errors" "github.com/pkg/errors"
"testing" "testing"

View file

@ -19,7 +19,6 @@ package snapshot
import ( import (
crand "crypto/rand" crand "crypto/rand"
"encoding/binary" "encoding/binary"
"errors"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/rand" "math/rand"

View file

@ -18,7 +18,6 @@ package vm
import ( import (
"bytes" "bytes"
"errors"
"github.com/pkg/errors" "github.com/pkg/errors"
"math" "math"
"math/big" "math/big"

View file

@ -17,7 +17,6 @@
package downloader package downloader
import ( import (
"errors"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/big" "math/big"

View file

@ -19,7 +19,6 @@ package pebble
import ( import (
"bytes" "bytes"
"errors"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"runtime" "runtime"

View file

@ -19,7 +19,6 @@ package core_test
import ( import (
"bytes" "bytes"
"context" "context"
"errors"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/pkg/errors"
"math/big" "math/big"