Skip to content

Commit

Permalink
Reindent loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Sep 28, 2021
1 parent 9c753d1 commit 8adfd26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sanic/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,12 @@ def register(self, app, options):

route_names = [route.name for route in routes if route]

# Middleware
if route_names:
# Middleware
for future in self._future_middleware:
middleware.append(app._apply_middleware(future, route_names))

# Exceptions
if route_names:
# Exceptions
for future in self._future_exceptions:
exception_handlers.append(
app._apply_exception_handler(future, route_names)
Expand All @@ -347,6 +346,7 @@ def register(self, app, options):
for listener in self._future_listeners:
listeners[listener.event].append(app._apply_listener(listener))

# Signals
for signal in self._future_signals:
signal.condition.update({"blueprint": self.name})
app._apply_signal(signal)
Expand Down

0 comments on commit 8adfd26

Please sign in to comment.