[Minor] Code cleanup
This commit is contained in:
parent
6d0b3f5fb9
commit
be0c3a806c
|
@ -36,7 +36,7 @@ public class NetworkHelper {
|
|||
public static String formatMacAddress(byte[] bytes) {
|
||||
StringBuilder sb = new StringBuilder(17);
|
||||
for (byte b : bytes) {
|
||||
if (sb.length() > 0)
|
||||
if (!sb.isEmpty())
|
||||
sb.append(':');
|
||||
sb.append(String.format("%02x", b));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue