diff options
Diffstat (limited to 'Command.hs')
-rw-r--r-- | Command.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Command.hs b/Command.hs index 58f57762e..d1d539f45 100644 --- a/Command.hs +++ b/Command.hs @@ -68,8 +68,7 @@ noMessages c = c { cmdnomessages = True } {- Undoes noMessages -} allowMessages :: Annex () allowMessages = do - curr <- Annex.getState Annex.output - case outputType curr of + outputType <$> Annex.getState Annex.output >>= \case QuietOutput -> Annex.setOutput NormalOutput _ -> noop Annex.changeState $ \s -> s |