Skip to content

Commit 836cd71

Browse files
author
Brian Villemarette
committed
Clean up duplicate check
1 parent dd22d5a commit 836cd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def register_blueprint(self, blueprint: "Blueprint", prefix: Optional[str] = Non
637637
if prefix and route[0] == "/":
638638
route = (prefix, *route[1:])
639639
elif prefix:
640-
route = (f"{prefix}{route[0]}" if prefix else route[0], *route[1:])
640+
route = (f"{prefix}{route[0]}", *route[1:])
641641
self.route(*route)(func(app=self))
642642

643643

0 commit comments

Comments
 (0)