aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/state/inmemorystore.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/state/inmemorystore.go')
-rw-r--r--swarm/state/inmemorystore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/state/inmemorystore.go b/swarm/state/inmemorystore.go
index 1ca25404a..3ba48592b 100644
--- a/swarm/state/inmemorystore.go
+++ b/swarm/state/inmemorystore.go
@@ -59,7 +59,7 @@ func (s *InmemoryStore) Get(key string, i interface{}) (err error) {
func (s *InmemoryStore) Put(key string, i interface{}) (err error) {
s.mu.Lock()
defer s.mu.Unlock()
- bytes := []byte{}
+ var bytes []byte
marshaler, ok := i.(encoding.BinaryMarshaler)
if !ok {