We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e7cb8 commit 31b9dafCopy full SHA for 31b9daf
aws_lambda_powertools/event_handler/async_execution/routes/s3.py
@@ -63,10 +63,10 @@ def __init__(
63
def is_target_with_bucket(self, bucket: str | None) -> bool:
64
if not bucket:
65
return False
66
- elif self.bucket and self.bucket == bucket:
67
- return True
68
- elif self.bucket_prefix and bucket.find(self.bucket_prefix) == 0:
69
+ elif self.bucket:
+ return self.bucket == bucket
+ elif self.bucket_prefix:
+ return bucket.find(self.bucket_prefix) == 0
70
else:
71
72
0 commit comments