Skip to content

Commit 8619b72

Browse files
fix: Display empty lists when using --json (#526)
1 parent 01a154c commit 8619b72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

linodecli/output.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ def _select_json_elements(keys, json_res):
372372

373373
results.append(selected)
374374

375-
if len(results) > 0:
376-
ret[k] = results
375+
ret[k] = results
377376

378377
return ret
379378

0 commit comments

Comments
 (0)