1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

no need for ternary clause

This commit is contained in:
Kelly Brazil
2021-03-24 12:57:19 -07:00
parent 798250af61
commit 440c458eb4

View File

@ -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