diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-23 15:48:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-23 15:48:14 -0400 |
commit | 6420fa6c0893ec15436243a03544914383acb936 (patch) | |
tree | 2d7886fb1b43083c126ebd901e32ad205880d5c0 /Assistant/DaemonStatus.hs | |
parent | 715a9a2f8e788ffe0bc92bc02919a1825bda49a7 (diff) |
remove pointless bracket
Diffstat (limited to 'Assistant/DaemonStatus.hs')
-rw-r--r-- | Assistant/DaemonStatus.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/DaemonStatus.hs b/Assistant/DaemonStatus.hs index 4a0d271a3..44789290c 100644 --- a/Assistant/DaemonStatus.hs +++ b/Assistant/DaemonStatus.hs @@ -246,13 +246,13 @@ updateAlertMap dstatus a = notifyAlert dstatus `after` modifyDaemonStatus_ dstat alertWhile :: DaemonStatusHandle -> Alert -> IO Bool -> IO Bool alertWhile dstatus alert a = alertWhile' dstatus alert $ do r <- a - return $ (r, r) + return (r, r) {- Like alertWhile, but allows the activity to return a value too. -} alertWhile' :: DaemonStatusHandle -> Alert -> IO (Bool, a) -> IO a alertWhile' dstatus alert a = do let alert' = alert { alertClass = Activity } i <- addAlert dstatus alert' - (ok, r) <- bracket_ noop noop a + (ok, r) <- a updateAlertMap dstatus $ mergeAlert i $ makeAlertFiller ok alert' return r |