From cb0d67811a129873af32560f8c2f1290c11adf3c Mon Sep 17 00:00:00 2001 From: dberenbaum Date: Tue, 23 Jan 2024 14:52:25 -0500 Subject: [PATCH] status: always show json --- 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