aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/state/dbstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/state/dbstore.go')
-rw-r--r--swarm/state/dbstore.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/state/dbstore.go b/swarm/state/dbstore.go
index 5e5c172b2..b0aa92e27 100644
--- a/swarm/state/dbstore.go
+++ b/swarm/state/dbstore.go
@@ -69,7 +69,7 @@ func (s *DBStore) Get(key string, i interface{}) (err error) {
// Put stores an object that implements Binary for a specific key.
func (s *DBStore) Put(key string, i interface{}) (err error) {
- bytes := []byte{}
+ var bytes []byte
marshaler, ok := i.(encoding.BinaryMarshaler)
if !ok {