summaryrefslogtreecommitdiff
path: root/Messages
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-14 16:46:06 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-14 16:46:06 -0400
commit44a48a19ffeb8085e7ae1f6bf58d5661adaf8a8d (patch)
tree20729fd0a6e32b7a9896c5d32f6e1bcb27f0e05f /Messages
parenta3b23acd92cadfd5107dd8f2f56c737ed7e90d28 (diff)
reuse strings
Diffstat (limited to 'Messages')
-rw-r--r--Messages/Progress.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Messages/Progress.hs b/Messages/Progress.hs
index 64aede514..9bc335570 100644
--- a/Messages/Progress.hs
+++ b/Messages/Progress.hs
@@ -42,8 +42,7 @@ metered combinemeterupdate key af a = case keySize key of
, pgTotal = size
, pgOnCompletion = do
ok <- takeMVar result
- putStrLn $ desc ++ " " ++
- if ok then "ok" else "failed"
+ putStrLn $ desc ++ " " ++ endResult ok
}
r <- a $ liftIO . pupdate pg