more lambda-case conversion
This commit is contained in:
parent
936d50310d
commit
fc845e6530
29 changed files with 137 additions and 199 deletions
|
@ -176,9 +176,8 @@ hashFile hash file filesize = go hash
|
|||
|
||||
usehasher hashsize@(HashSize sz) = case shaHasher hashsize filesize of
|
||||
Left sha -> use sha
|
||||
Right (external, internal) -> do
|
||||
v <- liftIO $ externalSHA external sz file
|
||||
case v of
|
||||
Right (external, internal) ->
|
||||
liftIO (externalSHA external sz file) >>= \case
|
||||
Right r -> return r
|
||||
Left e -> do
|
||||
warning e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue