From e120e261bddd4c67710149aa81e2d3dbd41ce65a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 8 Jan 2019 15:17:07 +0000 Subject: [PATCH] import: if there's nothing to import, be quiet --- hledger/Hledger/Cli/Commands/Import.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger/Hledger/Cli/Commands/Import.hs b/hledger/Hledger/Cli/Commands/Import.hs index 8d39860dc..3e6b21c7f 100755 --- a/hledger/Hledger/Cli/Commands/Import.hs +++ b/hledger/Hledger/Cli/Commands/Import.hs @@ -49,7 +49,7 @@ importcmd opts@CliOpts{rawopts_=rawopts,inputopts_=iopts} j = do Left e -> error' e Right newj -> case sortBy (comparing tdate) $ jtxns newj of - [] -> putStrLn "no new transactions" + [] -> return () newts | dryrun -> do printf "; would import %d new transactions:\n\n" (length newts) -- TODO how to force output here ?