diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-13 00:57:52 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-13 00:57:52 -0400 |
commit | df337bb63b4ed6e5d2ce563ec89d28d192e791db (patch) | |
tree | 638813a415727b8a5441ba450e20e6dc2632c970 /Command/WebApp.hs | |
parent | a3913f52e52777b18bd8e50ff593a4f4085e8b93 (diff) |
hlint
Diffstat (limited to 'Command/WebApp.hs')
-rw-r--r-- | Command/WebApp.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs index 7360e1b0c..a7d00738f 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -39,13 +39,13 @@ seek = [withNothing start] start :: CommandStart start = notBareRepo $ do - ifM (isInitialized) ( go , liftIO startNoRepo ) + ifM isInitialized ( go , liftIO startNoRepo ) stop where go = do browser <- fromRepo webBrowser f <- liftIO . absPath =<< fromRepo gitAnnexHtmlShim - ifM (checkpid <&&> checkshim f) $ + ifM (checkpid <&&> checkshim f) ( liftIO $ openBrowser browser f , startDaemon True True $ Just $ const $ openBrowser browser @@ -116,7 +116,7 @@ firstRun = do startAssistant True id $ Just $ sendurlback v sendurlback v url _htmlshim = putMVar v url {- Set up the pid file in the new repo. -} - dummydaemonize = do + dummydaemonize = liftIO . lockPidFile =<< fromRepo gitAnnexPidFile openBrowser :: Maybe FilePath -> FilePath -> IO () |