Skip to content

Commit 5cec5c3

Browse files
committed
x/os/net: remove unnecessary comptime prefix in resolveScopeID()
1 parent 231b376 commit 5cec5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/x/os/net.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const native_os = std.Target.current.os;
1717
/// an error if either resolution fails, or if the interface name is
1818
/// too long.
1919
pub fn resolveScopeID(name: []const u8) !u32 {
20-
if (comptime @hasDecl(os, "IFNAMESIZE")) {
20+
if (@hasDecl(os, "IFNAMESIZE")) {
2121
if (name.len >= os.IFNAMESIZE - 1) return error.NameTooLong;
2222

23-
if (comptime native_os.tag == .windows) {
23+
if (native_os.tag == .windows) {
2424
var interface_name: [os.IFNAMESIZE]u8 = undefined;
2525
mem.copy(u8, &interface_name, name);
2626
interface_name[name.len] = 0;

0 commit comments

Comments
 (0)