Skip to content

Commit 1f954ca

Browse files
committed
clean up
1 parent 76e0327 commit 1f954ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/javarepl/Main.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package javarepl;
22

3-
import com.googlecode.totallylazy.Lists;
43
import com.googlecode.totallylazy.Option;
54
import com.googlecode.totallylazy.Sequence;
65
import com.googlecode.totallylazy.Strings;
@@ -24,7 +23,6 @@
2423
import java.util.*;
2524

2625
import static com.googlecode.totallylazy.Files.fileOption;
27-
import static com.googlecode.totallylazy.Lists.list;
2826
import static com.googlecode.totallylazy.Option.none;
2927
import static com.googlecode.totallylazy.Option.some;
3028
import static com.googlecode.totallylazy.Sequences.empty;
@@ -112,7 +110,7 @@ private static JavaREPLClient clientFor(Option<String> hostname, Option<Integer>
112110
console.printInfo(welcomeMessage());
113111

114112
if (hostname.isDefined() && port.isDefined()) {
115-
return connectToRemoteInstance(hostname.get(), port.getOrElse(randomServerPort()));
113+
return connectToRemoteInstance(hostname.get(), port.get());
116114
} else {
117115
return startNewLocalInstance("localhost", port.getOrElse(randomServerPort()));
118116
}

0 commit comments

Comments
 (0)