Skip to content

Commit 705b372

Browse files
NRL-1215 Remove commented-out code for duplicate detection in JSON arrays
1 parent 4467cf7 commit 705b372

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

layer/nrlf/core/json_duplicate_checker.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ def traverse_array(self, items: JsonArray, path: list[str]) -> None:
9090
else:
9191
seen_elements.add(serialized_item)
9292

93-
# if item in seen_elements:
94-
# duplicate_path = f"{array_path}[{idx}]"
95-
# self.duplicate_keys_and_paths.setdefault(duplicate_path, []).append(f"{base_path[0]}.{duplicate_path}")
96-
# print(f"Found duplicate array element at path: {duplicate_path}")
97-
# else:
98-
# seen_elements.append(item)
9993
if not isinstance(item, (list, tuple)):
10094
continue
10195
self.process_collection(item, base_path, f"{array_path}[{idx}]")

0 commit comments

Comments
 (0)