Skip to content

Commit

Permalink
Save builder phase to an intermediary variable
Browse files Browse the repository at this point in the history
Splits intermediary operation into its own line to ease readability.
  • Loading branch information
francoisfreitag committed Jul 2, 2021
1 parent 1c9fe87 commit fa85ed8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions factory/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,8 @@ def __getattr__(self, name):
elif name in self.__declarations:
declaration = self.__declarations[name]
value = declaration.declaration
if (
enums.get_builder_phase(value)
== enums.BuilderPhase.ATTRIBUTE_RESOLUTION
):
builder_phase = enums.get_builder_phase(value)
if builder_phase == enums.BuilderPhase.ATTRIBUTE_RESOLUTION:
self.__pending.append(name)
try:
value = value.evaluate_pre(
Expand Down

0 comments on commit fa85ed8

Please sign in to comment.