use else if instead of else { if }

This commit is contained in:
Kristófer R
2025-06-10 22:03:33 -04:00
parent 6ed94b0034
commit 31e386afa6

View File

@@ -32,10 +32,8 @@ fn isValidMacAddress(mac_address: []const u8) bool {
if (c != ':') {
return false;
}
} else {
if (!std.mem.containsAtLeastScalar(u8, "0123456789ABCDEFabcdef", 1, c)) {
return false;
}
} else if (!std.mem.containsAtLeastScalar(u8, "0123456789ABCDEFabcdef", 1, c)) {
return false;
}
}