Permalink
Browse files

import: if there's nothing to import, be quiet

  • Loading branch information...
simonmichael committed Jan 8, 2019
1 parent 9acce24 commit e120e261bddd4c67710149aa81e2d3dbd41ce65a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ?

0 comments on commit e120e26

Please sign in to comment.