Skip to content

Commit 19ca55e

Browse files
committed
chore: remove xerrors
1 parent 76ff162 commit 19ca55e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

fslock.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package fslock
22

33
import (
4+
"errors"
45
"io"
56
"os"
67
"path/filepath"
@@ -10,7 +11,6 @@ import (
1011
util "github.com/ipfs/go-ipfs-util"
1112
logging "github.com/ipfs/go-log"
1213
lock "go4.org/lock"
13-
"golang.org/x/xerrors"
1414
)
1515

1616
// log is the fsrepo logger
@@ -78,7 +78,7 @@ func Locked(confdir, lockFile string) (bool, error) {
7878

7979
log.Debug(err)
8080

81-
if xerrors.As(err, new(LockedError)) {
81+
if errors.As(err, new(LockedError)) {
8282
return true, nil
8383
}
8484
return false, err

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ require (
44
github.com/ipfs/go-ipfs-util v0.0.1
55
github.com/ipfs/go-log v1.0.4
66
go4.org v0.0.0-20200411211856-f5505b9728dd
7-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
87
)
98

10-
go 1.12
9+
go 1.13

0 commit comments

Comments
 (0)