fix stuttering StoreValueUnsetError

This commit is contained in:
Thomas Tendyck 2022-03-25 12:49:22 +01:00 committed by Thomas Tendyck
parent 5660f813f0
commit b1818ba089
5 changed files with 9 additions and 9 deletions

View file

@ -30,7 +30,7 @@ func (s *StdStore) Get(request string) ([]byte, error) {
if ok {
return []byte(value), nil
}
return nil, &StoreValueUnsetError{requestedValue: request}
return nil, &ValueUnsetError{requestedValue: request}
}
// Put saves a value in StdStore by Type and Name.
@ -119,7 +119,7 @@ func (t *stdTransaction) Get(request string) ([]byte, error) {
if value, ok := t.data[request]; ok {
return []byte(value), nil
}
return nil, &StoreValueUnsetError{requestedValue: request}
return nil, &ValueUnsetError{requestedValue: request}
}
// Put saves a value.