Skip to content

Commit

Permalink
fix: remove usages of Apache Commons Lang (#2173)
Browse files Browse the repository at this point in the history
* fix: remove usages of Apache Commons Lang

* simplified the check for undefined environment variable.
  • Loading branch information
iwasakims authored Nov 8, 2022
1 parent 3aa192a commit 58147cf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package org.eclipse.edc.test.system.remote;

import io.gatling.javaapi.core.Simulation;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.edc.test.system.FileTransferSimulationConfiguration;

import java.util.Objects;
Expand Down Expand Up @@ -51,6 +50,6 @@ public FileTransferAsClientSimulation() {
}

private static String getFromEnv(String env) {
return Objects.requireNonNull(StringUtils.trimToNull(System.getenv(env)), env);
return Objects.requireNonNull(System.getenv(env), env + " must be set.");
}
}

0 comments on commit 58147cf

Please sign in to comment.