[Minor] Code cleanup

This commit is contained in:
Robert von Burg 2023-10-09 14:44:35 +02:00
parent 6d0b3f5fb9
commit be0c3a806c
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}