mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
storage: remove impossible error branch from MemoryStore
MemoryStore is always successful, so this branch makes no sense.
This commit is contained in:
parent
4a732d97ac
commit
8bf37f45fc
1 changed files with 1 additions and 3 deletions
|
@ -59,9 +59,7 @@ func (s *MemoryStore) Put(key, value []byte) error {
|
||||||
func (s *MemoryStore) PutBatch(batch Batch) error {
|
func (s *MemoryStore) PutBatch(batch Batch) error {
|
||||||
b := batch.(*MemoryBatch)
|
b := batch.(*MemoryBatch)
|
||||||
for k, v := range b.m {
|
for k, v := range b.m {
|
||||||
if err := s.Put(*k, v); err != nil {
|
_ = s.Put(*k, v)
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue