Skip to content

Commit 0be68bd

Browse files
author
Michael Brewer
committed
refactor: Rely on python truthy
1 parent 7ad9691 commit 0be68bd

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/utilities/idempotency/persistence

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/idempotency/persistence/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _get_hashed_idempotency_key(self, lambda_event: Dict[str, Any]) -> str:
183183

184184
@staticmethod
185185
def is_missing_idempotency_key(data) -> bool:
186-
if data is None or not data:
186+
if not data:
187187
return True
188188
if type(data).__name__ in ("tuple", "list", "dict"):
189189
return all(x is None for x in data)

0 commit comments

Comments
 (0)