diff options
author | Joey Hess <joey@kitenet.net> | 2012-06-12 11:32:06 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-06-12 11:32:06 -0400 |
commit | 942d8f72984377c4e69d7c55877621d434e5d687 (patch) | |
tree | da1f205c66d57a4a88c727af382c4d6e09c2e881 /Command/Watch.hs | |
parent | 85f0992c0378aad442da5dbbd5deadffe33f77e1 (diff) |
hlint
Diffstat (limited to 'Command/Watch.hs')
-rw-r--r-- | Command/Watch.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/Watch.hs b/Command/Watch.hs index e049591e9..0ee932dba 100644 --- a/Command/Watch.hs +++ b/Command/Watch.hs @@ -176,7 +176,7 @@ runHandler :: MVar Annex.AnnexState -> ChangeChan -> Handler -> FilePath -> IO ( runHandler st changechan handler file = void $ do r <- tryIO (runStateMVar st $ handler file) case r of - Left e -> putStrLn $ show e + Left e -> print e Right Nothing -> noop Right (Just change) -> void $ runChangeChan $ writeTChan changechan change @@ -236,7 +236,7 @@ onAddSymlink file = go =<< Backend.lookupFile file - So for speed, tries to reuse the existing blob for - the symlink target. -} addlink link = do - v <- catObjectDetails $ Ref $ ":" ++ file + v <- catObjectDetails $ Ref $ ':':file case v of Just (currlink, sha) | s2w8 link == L.unpack currlink -> @@ -307,7 +307,7 @@ commitThread st changechan = forever $ do -- Now see if now's a good time to commit. time <- getCurrentTime if shouldCommit time cs - then void $ tryIO $ runStateMVar st $ commitStaged + then void $ tryIO $ runStateMVar st commitStaged else refillChanges changechan cs where oneSecond = 1000000 -- microseconds |