mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
remove unnecessary parens
This commit is contained in:
@@ -177,14 +177,16 @@ public class Server implements Runnable {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return true if this server is still active and hasn't run
|
||||
* into any trouble.
|
||||
*/
|
||||
public boolean active() {
|
||||
return (thread != null);
|
||||
return thread != null;
|
||||
}
|
||||
|
||||
|
||||
static public String ip() {
|
||||
try {
|
||||
return InetAddress.getLocalHost().getHostAddress();
|
||||
|
||||
@@ -140,7 +140,7 @@ public class Serial implements SerialPortEventListener {
|
||||
* into any trouble.
|
||||
*/
|
||||
public boolean active() {
|
||||
return (port.isOpened());
|
||||
return port.isOpened();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user