feat: need else on hash check
This commit is contained in:
parent
bf25d7bfda
commit
bf15faf33f
|
@ -1299,9 +1299,10 @@ func (h *HttpHandler) DownloadFile(jc jape.Context) {
|
|||
}
|
||||
|
||||
hashBytes = hashDecoded.HashBytes()
|
||||
}
|
||||
} else {
|
||||
|
||||
hashBytes = cidDecoded.Hash.HashBytes()
|
||||
}
|
||||
|
||||
file := storage.NewFile(hashBytes, h.portal.Storage())
|
||||
|
||||
|
|
Loading…
Reference in New Issue