Skip to content

Commit

Permalink
feat: change interface to check error
Browse files Browse the repository at this point in the history
  • Loading branch information
hea9549 committed Aug 16, 2020
1 parent c22e47e commit 0776001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions keychain/mem/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ type MemStore struct {
keys map[string]keychain.Key
}

func (ks *MemStore) Store(k keychain.Key) {

func (ks *MemStore) Store(k keychain.Key) error {
panic("impl me!")
}

func (ks *MemStore) Get(id string) keychain.Key {
Expand Down
2 changes: 1 addition & 1 deletion keychain/store.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package keychain

type Store interface {
Store(k Key)
Store(k Key) error
Get(id string) Key
}

0 comments on commit 0776001

Please sign in to comment.