swarm/storage: remove unnecessary conversion

This commit is contained in:
Anton Evangelatov 2018-03-30 15:00:57 +02:00
parent ab3a4b9b47
commit 218586aa91

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
}