tests, signer: remove staticcheck warnings (#20364)
This commit is contained in:
committed by
Felix Lange
parent
fdff182f11
commit
5d21667587
@ -41,8 +41,7 @@ type Storage interface {
|
||||
// EphemeralStorage is an in-memory storage that does
|
||||
// not persist values to disk. Mainly used for testing
|
||||
type EphemeralStorage struct {
|
||||
data map[string]string
|
||||
namespace string
|
||||
data map[string]string
|
||||
}
|
||||
|
||||
// Put stores a value by key. 0-length keys results in noop.
|
||||
@ -83,5 +82,5 @@ type NoStorage struct{}
|
||||
func (s *NoStorage) Put(key, value string) {}
|
||||
func (s *NoStorage) Del(key string) {}
|
||||
func (s *NoStorage) Get(key string) (string, error) {
|
||||
return "", errors.New("I forgot")
|
||||
return "", errors.New("missing key, I probably forgot")
|
||||
}
|
||||
|
Reference in New Issue
Block a user