From 1610e3ae9e69d8843a868c11c3350612d37b327a Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Wed, 9 Feb 2022 12:14:31 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- looptrader/basetypes/Strategy/spreadsbydeltastrategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/looptrader/basetypes/Strategy/spreadsbydeltastrategy.py b/looptrader/basetypes/Strategy/spreadsbydeltastrategy.py index 65c555f..7900cf6 100644 --- a/looptrader/basetypes/Strategy/spreadsbydeltastrategy.py +++ b/looptrader/basetypes/Strategy/spreadsbydeltastrategy.py @@ -390,7 +390,7 @@ def get_next_expiration( """Checks an option chain response for the next expiration date.""" logger.debug("get_next_expiration") - if expirations is None or expirations == []: + if expirations is None or not expirations: logger.error("No expirations provided.") return None