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

Commit 116f7a2

Browse files
author
Nikhil Bhoski
committed
Updated review comments for FilePath changes.
1 parent 25b9ca0 commit 116f7a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ default FilePath getFilePathForUniqueFolder(Launcher launcher, String uniqueName
7676
* https://javadoc.jenkins-ci.org/jenkins/tasks/SimpleBuildStep.html */
7777

7878
String tmpDir = getNodeSpecificTmpFolderPath(workspace);
79-
if (launcher.isUnix()) {
80-
tmpDir = tmpDir + "/" + uniqueName;
81-
} else {
82-
tmpDir = tmpDir + "\\" + uniqueName;
83-
}
84-
return new FilePath(launcher.getChannel(), tmpDir);
79+
return new FilePath(launcher.getChannel(), tmpDir+"/"+uniqueName);
8580
}
8681

8782
default String getNodeSpecificTmpFolderPath(FilePath workspace) throws IOException, InterruptedException {

0 commit comments

Comments
 (0)