From 7a82b784ebe90843e154bb15e0d639f6275a24c9 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 13 Sep 2024 11:15:47 -0400 Subject: [PATCH] rename variable to silence sonarscan --- jwst/model_blender/_schemautil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jwst/model_blender/_schemautil.py b/jwst/model_blender/_schemautil.py index be84a9c4e2..2aa50c6ff2 100644 --- a/jwst/model_blender/_schemautil.py +++ b/jwst/model_blender/_schemautil.py @@ -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