mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
swarm/storage: remove unnecessary conversion
This commit is contained in:
parent
ab3a4b9b47
commit
218586aa91
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
// If the data is encrypted and the reference contains an encryption key, it will be decrypted before
|
||||||
// return.
|
// return.
|
||||||
func (h *hasherStore) Get(ref Reference) (ChunkData, error) {
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue