Skip to content

Potential fix for code scanning alert no. 268: Unnecessary pass - #497

Draft
DavidPCoster wants to merge 1 commit into
devfrom
alert-autofix-268
Draft

Potential fix for code scanning alert no. 268: Unnecessary pass#497
DavidPCoster wants to merge 1 commit into
devfrom
alert-autofix-268

Conversation

@DavidPCoster

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/UCL-CCS/EasyVVUQ/security/code-scanning/268

Remove the unnecessary pass statement from ExecuteLocal.finalise in src/easyvvuq/actions/execute_local.py.

  • General fix approach: In Python, keep pass only in empty blocks.
  • Best targeted fix here: Delete line 248 (pass) in the finalise method while leaving all existing logic unchanged.
  • File/region: src/easyvvuq/actions/execute_local.py, inside class ExecuteLocal, method finalise.
  • No imports, new methods, or dependency changes are required.

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>
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.

2 participants