Skip to content

Commit

Permalink
simplying json code path
Browse files Browse the repository at this point in the history
  • Loading branch information
geier committed Oct 30, 2023
1 parent 5dbad2b commit ce791d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions khal/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def khal_list(
if agenda_format is None:
agenda_format = conf['view']['agenda_event_format']

json_mode = json is not None and len(json) > 0
if json_mode:
if json is not None:
formatter = json_formatter(json)
colors = False
else:
Expand Down

0 comments on commit ce791d0

Please sign in to comment.