swarm/storage: Remove unnecessary conversion

This commit is contained in:
Balint Gabor 2018-03-30 17:36:23 +02:00
parent 07a1ae5f01
commit 17977c2e79

View file

@ -95,7 +95,7 @@ func (h *hasherStore) Put(chunkData ChunkData) (Reference, error) {
// If the data is encrypted and the reference contains an encryption key, it will be decrypted before
// return.
func (h *hasherStore) Get(ref Reference) (ChunkData, error) {
key, encryptionKey, err := parseReference(ref, int(h.hashSize))
key, encryptionKey, err := parseReference(ref, h.hashSize)
if err != nil {
return nil, err
}