hlint
test suite still passes
This commit is contained in:
parent
3192b059b5
commit
b405295aee
30 changed files with 72 additions and 75 deletions
|
@ -104,7 +104,7 @@ withIncremental = withValue $ do
|
|||
Nothing -> noop
|
||||
Just started -> do
|
||||
now <- liftIO getPOSIXTime
|
||||
when (now - realToFrac started >= delta) $
|
||||
when (now - realToFrac started >= delta)
|
||||
resetStartTime
|
||||
return True
|
||||
|
||||
|
@ -187,7 +187,7 @@ performAll key backend = check
|
|||
]
|
||||
|
||||
check :: [Annex Bool] -> Annex Bool
|
||||
check cs = all id <$> sequence cs
|
||||
check cs = and <$> sequence cs
|
||||
|
||||
{- Checks that the file's link points correctly to the content.
|
||||
-
|
||||
|
@ -225,7 +225,7 @@ verifyLocationLog key desc = do
|
|||
|
||||
{- In direct mode, modified files will show up as not present,
|
||||
- but that is expected and not something to do anything about. -}
|
||||
if (direct && not present)
|
||||
if direct && not present
|
||||
then return True
|
||||
else verifyLocationLog' key desc present u (logChange key u)
|
||||
|
||||
|
@ -345,7 +345,7 @@ checkBackend backend key mfile = go =<< isDirect
|
|||
checkBackendRemote :: Backend -> Key -> Remote -> Maybe FilePath -> Annex Bool
|
||||
checkBackendRemote backend key remote = maybe (return True) go
|
||||
where
|
||||
go file = checkBackendOr (badContentRemote remote) backend key file
|
||||
go = checkBackendOr (badContentRemote remote) backend key
|
||||
|
||||
checkBackendOr :: (Key -> Annex String) -> Backend -> Key -> FilePath -> Annex Bool
|
||||
checkBackendOr bad backend key file =
|
||||
|
@ -406,7 +406,7 @@ badContentDirect :: FilePath -> Key -> Annex String
|
|||
badContentDirect file key = do
|
||||
void $ liftIO $ catchMaybeIO $ touchFile file
|
||||
logStatus key InfoMissing
|
||||
return $ "left in place for you to examine"
|
||||
return "left in place for you to examine"
|
||||
|
||||
badContentRemote :: Remote -> Key -> Annex String
|
||||
badContentRemote remote key = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue