From f43ac1ec6f43c7e83c716c65d6c691b32fa4c7fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erdal=20TA=C5=9EKESEN?= Date: Wed, 13 Jul 2022 14:23:57 +0300 Subject: [PATCH] redo: Use errors.New() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iss: close #59 Signed-off-by: Erdal TAŞKESEN --- keyring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyring.go b/keyring.go index 0b94ad5..6b90a0d 100644 --- a/keyring.go +++ b/keyring.go @@ -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 @@ -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.