Skip to content

Fix for Variable defined multiple times#107

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

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

Conversation

@PaulWinterstein
Copy link
Copy Markdown
Collaborator

The fix is to remove the redundant self-assignment and keep a single assignment to path_parts in get_value_by_path.

Best fix without changing behavior:

  • File: src/videoipath_automation_tool/apps/inventory/model/inventory_device_configuration_compare.py
  • Region: get_value_by_path method, line 86 in the provided snippet.
  • Change:
    • From: path_parts = path_parts = path.replace("']['", "/")[2:-2].split("/")
    • To: path_parts = path.replace("']['", "/")[2:-2].split("/")

No imports, new 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:54
@PaulWinterstein PaulWinterstein merged commit 7400b13 into main May 27, 2026
8 checks passed
@PaulWinterstein PaulWinterstein deleted the finding-autofix-513 branch May 27, 2026 18:54
@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