From ce791d010b386702a0f871623262186a4167af07 Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Tue, 31 Oct 2023 00:28:23 +0100 Subject: [PATCH] simplying json code path --- khal/controllers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/khal/controllers.py b/khal/controllers.py index a850b33c8..ef6bc9e5d 100644 --- a/khal/controllers.py +++ b/khal/controllers.py @@ -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: