Skip to content

Commit 610e85f

Browse files
authored
Merge pull request #75 from erdaltsksn-forks/issue/59
redo: Use errors.New()
2 parents 45bdf89 + f43ac1e commit 610e85f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keyring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package keyring
22

3-
import "fmt"
3+
import "errors"
44

55
// provider set in the init function by the relevant os file e.g.:
66
// keyring_linux.go
@@ -9,7 +9,7 @@ var provider Keyring = fallbackServiceProvider{}
99
var (
1010
// ErrNotFound is the expected error if the secret isn't found in the
1111
// keyring.
12-
ErrNotFound = fmt.Errorf("secret not found in keyring")
12+
ErrNotFound = errors.New("secret not found in keyring")
1313
)
1414

1515
// Keyring provides a simple set/get interface for a keyring service.

0 commit comments

Comments
 (0)