refactor - simplify comparison

This commit is contained in:
mavhungutrezzy 2022-10-03 09:56:17 +02:00
parent 0d8c8ba71b
commit a730578fcb

View file

@ -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