remove some assertXxx funcs

This commit is contained in:
Ethan Buchman
2017-10-05 22:19:48 -04:00
parent 796024f42f
commit 1775be1cd9
3 changed files with 3 additions and 20 deletions

View File

@ -22,13 +22,9 @@ func New() MemStore {
return MemStore{}
}
// assert MemStore satisfies keys.Storage
var _ keys.Storage = MemStore{}
// assertStorage just makes sure we implement the Storage interface
func (s MemStore) assertStorage() keys.Storage {
return s
}
// Put adds the given key, returns an error if it another key
// is already stored under this name
func (s MemStore) Put(name string, key []byte, info keys.Info) error {