Skip to content

Commit

Permalink
Merge pull request #78 from erdaltsksn-forks/redo/staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
szuecs authored Jul 13, 2022
2 parents def2add + f58427c commit 45bdf89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions keyring_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (k macOSXKeychain) Get(service, username string) (string, error) {
"-s", service,
"-wa", username).CombinedOutput()
if err != nil {
if strings.Contains(fmt.Sprintf("%s", out), "could not be found") {
if strings.Contains(string(out), "could not be found") {
err = ErrNotFound
}
return "", err
Expand Down Expand Up @@ -99,7 +99,7 @@ func (k macOSXKeychain) Delete(service, username string) error {
"delete-generic-password",
"-s", service,
"-a", username).CombinedOutput()
if strings.Contains(fmt.Sprintf("%s", out), "could not be found") {
if strings.Contains(string(out), "could not be found") {
err = ErrNotFound
}
return err
Expand Down
2 changes: 1 addition & 1 deletion keyring_fallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

// All of the following methods error out on unsupported platforms
var ErrUnsupportedPlatform = errors.New("Unsupported platform: " + runtime.GOOS)
var ErrUnsupportedPlatform = errors.New("unsupported platform: " + runtime.GOOS)

type fallbackServiceProvider struct{}

Expand Down

0 comments on commit 45bdf89

Please sign in to comment.