From a35208c5df555006431a66436288ce156af4fdb9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 28 Feb 2015 16:59:52 -0400 Subject: make programPath return FilePath not Maybe FilePath Looking at the few current callers, it's ok to have programPath throw an exception, in the unusual case where it cannot find git-annex. --- Assistant/Threads/UpgradeWatcher.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Assistant/Threads') diff --git a/Assistant/Threads/UpgradeWatcher.hs b/Assistant/Threads/UpgradeWatcher.hs index e779c8e54..952db1f13 100644 --- a/Assistant/Threads/UpgradeWatcher.hs +++ b/Assistant/Threads/UpgradeWatcher.hs @@ -36,8 +36,7 @@ upgradeWatcherThread urlrenderer = namedThread "UpgradeWatcher" $ do showSuccessfulUpgrade urlrenderer go =<< liftIO upgradeFlagFile where - go Nothing = debug [ "cannot determine program path" ] - go (Just flagfile) = do + go flagfile = do mvar <- liftIO $ newMVar InStartupScan changed <- Just <$> asIO2 (changedFile urlrenderer mvar flagfile) let hooks = mkWatchHooks -- cgit v1.2.3