Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 6, 2016
1 parent 76e0327 commit 1f954ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/javarepl/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package javarepl;

import com.googlecode.totallylazy.Lists;
import com.googlecode.totallylazy.Option;
import com.googlecode.totallylazy.Sequence;
import com.googlecode.totallylazy.Strings;
Expand All @@ -24,7 +23,6 @@
import java.util.*;

import static com.googlecode.totallylazy.Files.fileOption;
import static com.googlecode.totallylazy.Lists.list;
import static com.googlecode.totallylazy.Option.none;
import static com.googlecode.totallylazy.Option.some;
import static com.googlecode.totallylazy.Sequences.empty;
Expand Down Expand Up @@ -112,7 +110,7 @@ private static JavaREPLClient clientFor(Option<String> hostname, Option<Integer>
console.printInfo(welcomeMessage());

if (hostname.isDefined() && port.isDefined()) {
return connectToRemoteInstance(hostname.get(), port.getOrElse(randomServerPort()));
return connectToRemoteInstance(hostname.get(), port.get());
} else {
return startNewLocalInstance("localhost", port.getOrElse(randomServerPort()));
}
Expand Down

0 comments on commit 1f954ca

Please sign in to comment.