Skip to content

Commit

Permalink
[Minor] Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eitch committed Oct 9, 2023
1 parent 6d0b3f5 commit be0c3a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static List<Inet4Address> findInet4Addresses() throws SocketException {
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));
}
Expand Down

0 comments on commit be0c3a8

Please sign in to comment.