Skip to content

Commit

Permalink
Clean up duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Villemarette committed Oct 1, 2021
1 parent dd22d5a commit 836cd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws_lambda_powertools/event_handler/api_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def register_blueprint(self, blueprint: "Blueprint", prefix: Optional[str] = Non
if prefix and route[0] == "/":
route = (prefix, *route[1:])
elif prefix:
route = (f"{prefix}{route[0]}" if prefix else route[0], *route[1:])
route = (f"{prefix}{route[0]}", *route[1:])
self.route(*route)(func(app=self))


Expand Down

0 comments on commit 836cd71

Please sign in to comment.