mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
fix feedback
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user