Benjamin Schubert pushed to branch bschubert/further-opti at BuildStream / buildstream
Commits:
-
1982830a
by Benjamin Schubert at 2019-02-05T18:22:05Z
1 changed file:
Changes:
... | ... | @@ -301,10 +301,10 @@ class Loader(): |
301 | 301 |
sequence = []
|
302 | 302 |
|
303 | 303 |
# Skip already validated branches
|
304 |
- if validated.get(element) is not None:
|
|
304 |
+ if element in validated:
|
|
305 | 305 |
return
|
306 | 306 |
|
307 |
- if check_elements.get(element) is not None:
|
|
307 |
+ if element in check_elements:
|
|
308 | 308 |
# Create `chain`, the loop of element dependencies from this
|
309 | 309 |
# element back to itself, by trimming everything before this
|
310 | 310 |
# element from the sequence under consideration.
|