Skip to content

Commit

Permalink
Fix lint lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Nov 19, 2024
1 parent 50fd21c commit f03efa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const (
BackendMemory = "memory"
)

//nolint:unused
const (
keyringFileDirName = "keyring-file"
keyringTestDirName = "keyring-test"
Expand Down Expand Up @@ -57,7 +58,8 @@ func NewKeyring(appName, backend, rootDir string, userInput io.Reader) (Keyring,
case BackendTest:
db, err = keyring.Open(newTestBackendKeyringConfig(appName, rootDir))
case BackendFile:
cfg, err := newFileBackendKeyringConfig(appName, rootDir, userInput)
var cfg keyring.Config
cfg, err = newFileBackendKeyringConfig(appName, rootDir, userInput)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -173,6 +175,8 @@ func newTestBackendKeyringConfig(appName, dir string) keyring.Config {
}

// newPassBackendKeyringConfig creates a new pass backend keyring configuration.
//
//nolint:unused
func newPassBackendKeyringConfig(appName, _ string, _ io.Reader) (keyring.Config, error) {
prefix := fmt.Sprintf(passKeyringPrefix, appName)

Expand Down

0 comments on commit f03efa4

Please sign in to comment.