swarm/storage: append to nil slice

This commit is contained in:
Fabio Barone 2019-02-12 09:33:30 -05:00
parent bb5e51e33b
commit b36816a2ef

View file

@ -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 // create a special kind of putter, which only will store the references
putter := &hashExplorer{ putter := &hashExplorer{
hasherStore: NewHasherStore(f.ChunkStore, f.hashFunc, toEncrypt), hasherStore: NewHasherStore(f.ChunkStore, f.hashFunc, toEncrypt),
references: make([]Reference, 0),
} }
// do the actual splitting anyway, no way around it // do the actual splitting anyway, no way around it
_, wait, err := PyramidSplit(ctx, data, putter, putter) _, wait, err := PyramidSplit(ctx, data, putter, putter)