Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 2e3ff37

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent e9b9d16 commit 2e3ff37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

looptrader/basetypes/Strategy/spreadsbydeltastrategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def get_next_expiration(
390390
"""Checks an option chain response for the next expiration date."""
391391
logger.debug("get_next_expiration")
392392

393-
if expirations is None or expirations == []:
393+
if expirations is None or not expirations:
394394
logger.error("No expirations provided.")
395395
return None
396396

0 commit comments

Comments
 (0)