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

Commit ac1f9b2

Browse files
committed
Address Nikhils feedback_ use ternary operators
1 parent d73abe9 commit ac1f9b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,7 @@ public String getPdfReportFilePath() {
140140

141141
private Artifact getArtifactObject(boolean isChecked, Artifact returnVal) {
142142
// If previously checked assign valid artifact object else NullArtifact.
143-
if (isChecked){
144-
return returnVal;
145-
}else{
146-
return new NullArtifact();
147-
}
143+
return (isChecked) ? returnVal : new NullArtifact();
148144
}
149145

150146
private void setEnv(EnvVars env) {

0 commit comments

Comments
 (0)