Skip to content

Commit

Permalink
Fixed up a Try statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed May 15, 2017
1 parent 3505a11 commit 2a80f28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/au/com/agic/apptesting/Main.java
Expand Up @@ -3,6 +3,7 @@
import au.com.agic.apptesting.constants.Constants;
import au.com.agic.apptesting.utils.SystemPropertyUtils;
import au.com.agic.apptesting.utils.impl.SystemPropertyUtilsImpl;
import javaslang.control.Try;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.slf4j.Logger;
Expand All @@ -17,8 +18,6 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;

import javaslang.control.Try;

import static com.google.common.base.Preconditions.checkState;

public final class Main {
Expand Down Expand Up @@ -96,7 +95,7 @@ public static int run() {
break;
}

Try.of(() -> Thread.sleep(retryDelay * 1000));
Try.run(() -> Thread.sleep(retryDelay * 1000));
}

return lastFailures;
Expand Down

0 comments on commit 2a80f28

Please sign in to comment.