Skip to content

Commit

Permalink
redo: Use errors.New()
Browse files Browse the repository at this point in the history
iss: close #59

Signed-off-by: Erdal TAŞKESEN <[email protected]>
  • Loading branch information
erdaltsksn committed Jul 13, 2022
1 parent def2add commit f43ac1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyring.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package keyring

import "fmt"
import "errors"

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

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

0 comments on commit f43ac1e

Please sign in to comment.