use else if instead of else { if }
parent
6ed94b0034
commit
31e386afa6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue