mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
fix comptime if statement
This commit is contained in:
@@ -48,7 +48,7 @@ pub fn parseUrl(url: []const u8) UrlParsingError!std.Uri {
|
||||
return std.Uri.parse(url) catch |e| {
|
||||
// The mac-address-as-hostname issue is specific to macOS so we just return an error if we
|
||||
// hit it on other platforms.
|
||||
comptime if (builtin.os.tag != .macos) return e;
|
||||
if (comptime builtin.os.tag != .macos) return e;
|
||||
|
||||
// It's possible this is a mac address on macOS where the last 2 characters in the
|
||||
// address are non-digits, e.g. 'ff', and thus an invalid port.
|
||||
|
Reference in New Issue
Block a user