Skip to content

Commit dc65031

Browse files
Potential fix for code scanning alert no. 424: Variable defined multiple times
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Hemil Desai <hemil.desai10@gmail.com> Signed-off-by: Hemil Desai <hemild@nvidia.com>
1 parent b2ff9f5 commit dc65031

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nemo_run/core/execution/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def materialize(self) -> str:
900900

901901
# commandline (this will run the function and args specified in the file provided as argument)
902902
# We pass --output and --error here, because the SBATCH command doesn't work as expected with a filename pattern
903-
stderr_flags = [] if self.executor.stderr_to_stdout else ["--error", stderr]
903+
# Removed redundant assignment to stderr_flags
904904

905905
srun_commands = []
906906
group_env_vars = []

0 commit comments

Comments
 (0)