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