Skip to content

Commit

Permalink
Keystore: remove unneeded NewKeystore()
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Mar 15, 2020
1 parent 9acb729 commit 13f0c20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions keystore/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ type FSKeystore struct {
dir string
}

// NewKeystore returns a Keystore using the default implementation.
func NewKeystore(dir string) (Keystore, error) {
return NewFSKeystore(dir)
}

// NewFSKeystore returns a new filesystem-backed keystore.
func NewFSKeystore(dir string) (*FSKeystore, error) {
_, err := os.Stat(dir)
Expand Down
2 changes: 1 addition & 1 deletion repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (r *FSRepo) openConfig() error {

func (r *FSRepo) openKeystore() error {
ksp := filepath.Join(r.path, "keystore")
ks, err := keystore.NewKeystore(ksp)
ks, err := keystore.NewFSKeystore(ksp)
if err != nil {
return err
}
Expand Down

0 comments on commit 13f0c20

Please sign in to comment.