File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
package javarepl ;
2
2
3
- import com .googlecode .totallylazy .Lists ;
4
3
import com .googlecode .totallylazy .Option ;
5
4
import com .googlecode .totallylazy .Sequence ;
6
5
import com .googlecode .totallylazy .Strings ;
24
23
import java .util .*;
25
24
26
25
import static com .googlecode .totallylazy .Files .fileOption ;
27
- import static com .googlecode .totallylazy .Lists .list ;
28
26
import static com .googlecode .totallylazy .Option .none ;
29
27
import static com .googlecode .totallylazy .Option .some ;
30
28
import static com .googlecode .totallylazy .Sequences .empty ;
@@ -112,7 +110,7 @@ private static JavaREPLClient clientFor(Option<String> hostname, Option<Integer>
112
110
console .printInfo (welcomeMessage ());
113
111
114
112
if (hostname .isDefined () && port .isDefined ()) {
115
- return connectToRemoteInstance (hostname .get (), port .getOrElse ( randomServerPort () ));
113
+ return connectToRemoteInstance (hostname .get (), port .get ( ));
116
114
} else {
117
115
return startNewLocalInstance ("localhost" , port .getOrElse (randomServerPort ()));
118
116
}
You can’t perform that action at this time.
0 commit comments