Skip to content

Commit

Permalink
Simplify a field retrieval.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evildoor committed May 28, 2019
1 parent 2e8e9e1 commit ee65922
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Utils/Dataflow/071_esConsistency/consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ def process(stage, message):
log('Insufficient ES info in data:' + str(data), 'WARN')
return False

_parent = None
if '_parent' in data:
_parent = data.pop('_parent')
_parent = data.pop('_parent', None)

# Crutch. Remove unwanted (for now) fields added by Stage 016.
for field in ['phys_category', 'chain_data', 'chain_id']:
Expand Down

0 comments on commit ee65922

Please sign in to comment.