Skip to content

Commit

Permalink
style: better conditional style
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 13, 2021
1 parent 50a83b0 commit c5828d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quorum/model.py
Expand Up @@ -396,8 +396,8 @@ def new(
if fill: model = cls.fill(model, safe = not new)
instance = cls(fill = False)
instance.apply(model, form = form, safe_a = safe)
build and cls.build(instance.model, map = False)
new and instance.assert_is_new()
if build: cls.build(instance.model, map = False)
if new: instance.assert_is_new()
return instance

@classmethod
Expand Down

0 comments on commit c5828d5

Please sign in to comment.