linting: fixup some stuffs

This commit is contained in:
Zach Ramsay
2017-10-04 18:16:48 -04:00
parent 7921fb0c05
commit 87cb57c3e5
12 changed files with 121 additions and 22 deletions
+2 -1
View File
@@ -42,8 +42,9 @@ func New(dir string) FileStore {
return FileStore{dir}
}
var _ keys.Storage = FileStore{}
// assertStorage just makes sure we implement the proper Storage interface
// nolint [ megacheck, deadcode ]
func (s FileStore) assertStorage() keys.Storage {
return s
}
+2 -1
View File
@@ -22,8 +22,9 @@ func New() MemStore {
return MemStore{}
}
var _ keys.Storage = MemStore{}
// assertStorage just makes sure we implement the Storage interface
// nolint [ megacheck, deadcode ]
func (s MemStore) assertStorage() keys.Storage {
return s
}