Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 84602d8

Browse files
committed
Updated rewview comments
1 parent 5fddcb5 commit 84602d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mathworks/ci/MatlabBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
428428

429429
//Check the test run mode option selected by user and identify the target workspace to copy the scratch file.
430430
final String testRunMode = this.getTestRunTypeList().getDescriptor().getId();
431-
FilePath targetWorkspace = new FilePath(launcher.getChannel(), workspace.getRemote());
432431

433432
// Copy MATLAB scratch file into the workspace only if Automatic option is selected.
434433
if (testRunMode.contains(AUTOMATIC_OPTION)) {
434+
FilePath targetWorkspace = new FilePath(launcher.getChannel(), workspace.getRemote());
435435
copyMatlabScratchFileInWorkspace(MATLAB_RUNNER_RESOURCE, MATLAB_RUNNER_TARGET_FILE, targetWorkspace);
436436
}
437437
} catch (Exception e) {

0 commit comments

Comments
 (0)