From 440c458eb42925dffe2d7b026279468fa2fa1bb7 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 24 Mar 2021 12:57:19 -0700 Subject: [PATCH] no need for ternary clause --- jc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jc/utils.py b/jc/utils.py index 5def9303..07854c38 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -186,6 +186,6 @@ def parse_datetime_to_timestamp(data): if timestamp_naive: timestamp_obj['timestamp_naive'] = timestamp_naive - timestamp_obj['timestamp_utc'] = timestamp_utc if timestamp_utc else None + timestamp_obj['timestamp_utc'] = timestamp_utc return timestamp_obj if timestamp_obj else None