From e4aba02a2c5038a10c33704725dfda6a2323ee76 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 8 Feb 2022 17:28:12 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- looptrader/basetypes/Strategy/singlebydeltastrategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/looptrader/basetypes/Strategy/singlebydeltastrategy.py b/looptrader/basetypes/Strategy/singlebydeltastrategy.py index 5802543..6149932 100644 --- a/looptrader/basetypes/Strategy/singlebydeltastrategy.py +++ b/looptrader/basetypes/Strategy/singlebydeltastrategy.py @@ -592,7 +592,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