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