Skip to content

Commit bcf40c0

Browse files
committed
Fix linter errors
1 parent 2c250b7 commit bcf40c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/fpml/core/extract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ def process_assign_block(
372372
for key, obj_value in obj.items()
373373
}
374374
key = next(iter(obj.keys()))
375-
extended_context.update({key: result.get(key, None)})
375+
extended_context.update({key: result.get(key)})
376376
elif isinstance(node[assign_key], dict) and len(node[assign_key]) == 1:
377377
obj = node[assign_key]
378378
result = {
379379
key: resolve_template_recur(path, resource, obj_value, extended_context, fp_options)
380380
for key, obj_value in obj.items()
381381
}
382382
key = next(iter(obj.keys()))
383-
extended_context.update({key: result.get(key, None)})
383+
extended_context.update({key: result.get(key)})
384384
else:
385385
raise FPMLValidationError("Assign block must accept array or object", path)
386386
return omit_key(node, assign_key), extended_context

0 commit comments

Comments
 (0)