Skip to content

Commit

Permalink
rename variable to silence sonarscan (spacetelescope#8784)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Sep 13, 2024
2 parents 411d4d8 + 7a82b78 commit 760e085
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jwst/model_blender/_schemautil.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def callback(subschema, path, combiner, ctx, recurse):
return # ignore ObjectNodes

# strip trailing path if there's a combiner
for combiner in ['anyOf', 'oneOf']:
if combiner in path:
path = path[:path.index(combiner)]
for schema_combiner in ['anyOf', 'oneOf']:
if schema_combiner in path:
path = path[:path.index(schema_combiner)]
break

# construct the metadata attribute path
Expand Down

0 comments on commit 760e085

Please sign in to comment.