pull/checkout: fix empty output if no state gets changed (#3520)

This commit is contained in:
Saugat Pachhai
2020-03-24 13:48:06 +02:00
committed by GitHub
parent 9fd7d747c1
commit 1455e9551e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ def log_summary(stats):
for state in states
if stats.get(state)
)
logger.info(_human_join(summary))
logger.info(_human_join(summary) or "No changes.")
def log_changes(stats):
+1 -1
View File
@@ -47,7 +47,7 @@ def test_log_summary(caplog):
del stats["modified"]
_assert_output(stats, "3 added")
_assert_output({}, "")
_assert_output({}, "No changes.")
def test_log_changes(caplog):