Refactor: removed dead code and standarized to camelCase
This commit is contained in:
@@ -169,7 +169,9 @@ public class ClientLauncherTUI {
|
||||
RMIClient client = new RMIClient(controller, ip, NetworkConfig.RMI_PORT, myIP);
|
||||
ErrorType err = client.connect(username, nPlayers);
|
||||
if (err != null) {
|
||||
view.showError(err, err.toString());
|
||||
terminal.writer().print("\033[H\033[2J");
|
||||
terminal.writer().flush();
|
||||
System.out.println("Errore: " + err);
|
||||
return false;
|
||||
}
|
||||
System.out.println("Connected via RMI.");
|
||||
@@ -179,7 +181,9 @@ public class ClientLauncherTUI {
|
||||
TCPClient client = new TCPClient(controller, ip, NetworkConfig.TCP_PORT, NetworkConfig.HEARTBEAT_PORT);
|
||||
ErrorType err = client.connect(username, nPlayers);
|
||||
if (err != null) {
|
||||
view.showError(err, err.toString());
|
||||
terminal.writer().print("\033[H\033[2J");
|
||||
terminal.writer().flush();
|
||||
System.out.println("Errore: " + err);
|
||||
return false;
|
||||
}
|
||||
System.out.println("Connected via TCP.");
|
||||
|
||||
Reference in New Issue
Block a user