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 ?