mirror of
https://github.com/oven-sh/bun.git
synced 2026-10-28 21:46:59 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
1 parent
9f3242a0c0
commit
5319f5268b
1 file changed
+3
-1
@@ -1490,7 +1490,9 @@ impl StandaloneModuleGraph {
|
||||
}
|
||||
|
||||
let module_count = modules.count();
|
||||
let started = compiled_program.as_mut().and_then(start_at_named_entry_point);
|
||||
let started = compiled_program
|
||||
.as_mut()
|
||||
.and_then(start_at_named_entry_point);
|
||||
let entry_point_id = started.transpose()?.unwrap_or(offsets.entry_point_id);
|
||||
// `entry_point()` indexes `files`, which has one entry per name, not one per record.
|
||||
if entry_point_id as usize >= module_count {
|
||||
|
||||
Reference in new issue
Block a user