use else if instead of else { if }

pull/7029/head
Kristófer R 2025-06-10 22:03:33 -04:00
parent 6ed94b0034
commit 31e386afa6
No known key found for this signature in database
1 changed files with 2 additions and 4 deletions

View File

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