diff options
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/SHA.hs | 2 | ||||
-rw-r--r-- | Backend/WORM.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Backend/SHA.hs b/Backend/SHA.hs index bd6e411a0..dc27b3000 100644 --- a/Backend/SHA.hs +++ b/Backend/SHA.hs @@ -114,7 +114,7 @@ checkKeyChecksum size key = do fast <- Annex.getState Annex.fast let file = gitAnnexLocation g key present <- liftIO $ doesFileExist file - if (not present || fast) + if not present || fast then return True else do s <- shaN size file diff --git a/Backend/WORM.hs b/Backend/WORM.hs index 036d0564c..831c9e8ce 100644 --- a/Backend/WORM.hs +++ b/Backend/WORM.hs @@ -35,7 +35,7 @@ backend = Types.Backend.Backend { keyValue :: FilePath -> Annex (Maybe Key) keyValue file = do stat <- liftIO $ getFileStatus file - return $ Just $ Key { + return $ Just Key { keyName = takeFileName file, keyBackendName = name backend, keySize = Just $ fromIntegral $ fileSize stat, |