From 4b3c50b5044c5d982dc2b9b0a7b68f706ce9689a Mon Sep 17 00:00:00 2001 From: Michael H Date: Sat, 1 Feb 2025 17:43:34 +1100 Subject: [PATCH] fix feedback --- src/StandaloneModuleGraph.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/StandaloneModuleGraph.zig b/src/StandaloneModuleGraph.zig index 5779a802ed..e63be798a8 100644 --- a/src/StandaloneModuleGraph.zig +++ b/src/StandaloneModuleGraph.zig @@ -785,11 +785,7 @@ pub const StandaloneModuleGraph = struct { const self_exe = openSelf() catch return null; defer _ = Syscall.close(self_exe); - if (bun.getenvZ("BUN_SKIP_STANDALONE_MODULE_GRAPH")) |v| { - if (v.len > 0 and !(v.len == 1 and v[0] == '0')) { - return null; - } - } + if (bun.getRuntimeFeatureFlag("BUN_SKIP_STANDALONE_MODULE_GRAPH")) return null; var trailer_bytes: [4096]u8 = undefined; std.posix.lseek_END(self_exe.cast(), -4096) catch return null;