minor optimisation
This commit is contained in:
parent
3991327d09
commit
de0da0aece
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ retrieveChunks retriever u chunkconfig encryptor basek dest basep sink
|
|||
currsize <- liftIO $ catchMaybeIO $
|
||||
toInteger . fileSize <$> getFileStatus dest
|
||||
let ls' = maybe ls (setupResume ls) currsize
|
||||
if any (== 0) (map length ls')
|
||||
if any null ls'
|
||||
then return True -- dest is already complete
|
||||
else firstavail currsize ls' `catchNonAsyncAnnex` giveup
|
||||
|
||||
|
|
Loading…
Reference in a new issue