Skip to content

Fix for Variable defined multiple times#108

Merged
PaulWinterstein merged 1 commit into
mainfrom
finding-autofix-514
May 27, 2026
Merged

Fix for Variable defined multiple times#108
PaulWinterstein merged 1 commit into
mainfrom
finding-autofix-514

Conversation

@PaulWinterstein
Copy link
Copy Markdown
Collaborator

The fix is to remove the duplicated self-assignment and keep a single assignment to path_parts.

Best minimal fix (no functionality change):

  • In src/videoipath_automation_tool/apps/topology/model/topology_device_configuration_compare.py, method get_value_by_path, replace line 70:
    • from path_parts = path_parts = path.replace("']['", "/")[2:-2].split("/")
    • to path_parts = path.replace("']['", "/")[2:-2].split("/")

No imports, helper methods, or additional definitions are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@PaulWinterstein PaulWinterstein marked this pull request as ready for review May 27, 2026 18:53
@PaulWinterstein PaulWinterstein merged commit b10cff6 into main May 27, 2026
8 checks passed
@PaulWinterstein PaulWinterstein deleted the finding-autofix-514 branch May 27, 2026 18:53
@PaulWinterstein PaulWinterstein self-assigned this May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant