From 20edd72a43e7496aa10acf576d9fccc46da72fba Mon Sep 17 00:00:00 2001 From: Dave Berenbaum Date: Tue, 23 Jan 2024 20:09:02 -0500 Subject: [PATCH] status: always show json (#10253) --- dvc/commands/status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dvc/commands/status.py b/dvc/commands/status.py index 362a3a3f9b..93a9b03273 100644 --- a/dvc/commands/status.py +++ b/dvc/commands/status.py @@ -65,13 +65,13 @@ def run(self): logger.exception("") return 1 - if self.args.quiet: - return bool(st) - if self.args.json: ui.write_json(st) return 0 + if self.args.quiet: + return bool(st) + if st: self._show(st, indent) return 0