refactor - simplify comparison
This commit is contained in:
parent
0d8c8ba71b
commit
a730578fcb
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ class Blueprint(Scaffold):
|
|||
f" provide a unique name."
|
||||
)
|
||||
|
||||
first_bp_registration = not any(bp is self for bp in app.blueprints.values())
|
||||
first_bp_registration = all(bp is not self for bp in app.blueprints.values())
|
||||
first_name_registration = name not in app.blueprints
|
||||
|
||||
app.blueprints[name] = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue