Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 10, 2024
1 parent 3c41f76 commit e4ce2d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/jenkins/plugins/jfrog/JfStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import java.util.List;
import java.util.Objects;

import static io.jenkins.plugins.jfrog.JfrogInstallation.JFROG_BINARY_PATH;
import static org.apache.commons.lang3.StringUtils.*;
Expand Down Expand Up @@ -309,7 +308,7 @@ public boolean isApplicable(Class<? extends AbstractProject> jobType) {
}

String getJfrogCliVersion(Launcher.ProcStarter launcher) throws IOException, InterruptedException {
if (!Objects.equals(this.currentCliVersion, "")){
if (this.currentCliVersion != null && !this.currentCliVersion.isEmpty()) {
return this.currentCliVersion;
}
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Expand Down

0 comments on commit e4ce2d5

Please sign in to comment.