mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
use else if instead of else { if }
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user