Skip to content

Commit f0ae01d

Browse files
committed
remove unnecessary parens
1 parent 247c179 commit f0ae01d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

java/libraries/net/src/processing/net/Server.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,16 @@ protected int clientIndex(Client client) {
177177
return -1;
178178
}
179179

180+
180181
/**
181182
* Return true if this server is still active and hasn't run
182183
* into any trouble.
183184
*/
184185
public boolean active() {
185-
return (thread != null);
186+
return thread != null;
186187
}
187188

189+
188190
static public String ip() {
189191
try {
190192
return InetAddress.getLocalHost().getHostAddress();

java/libraries/serial/src/processing/serial/Serial.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void dispose() {
140140
* into any trouble.
141141
*/
142142
public boolean active() {
143-
return (port.isOpened());
143+
return port.isOpened();
144144
}
145145

146146

0 commit comments

Comments
 (0)