From b36816a2ef4d72219706547cf3bec3711972d42c Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Tue, 12 Feb 2019 09:33:30 -0500 Subject: [PATCH] swarm/storage: append to nil slice --- swarm/storage/filestore.go | 1 - 1 file changed, 1 deletion(-) diff --git a/swarm/storage/filestore.go b/swarm/storage/filestore.go index ca9499104f..0bad944ee9 100644 --- a/swarm/storage/filestore.go +++ b/swarm/storage/filestore.go @@ -104,7 +104,6 @@ func (f *FileStore) GetAllReferences(ctx context.Context, data io.Reader, toEncr // create a special kind of putter, which only will store the references putter := &hashExplorer{ hasherStore: NewHasherStore(f.ChunkStore, f.hashFunc, toEncrypt), - references: make([]Reference, 0), } // do the actual splitting anyway, no way around it _, wait, err := PyramidSplit(ctx, data, putter, putter)