diff --git a/src/install/install.zig b/src/install/install.zig index 05c9b478ad..846db8281b 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -13023,11 +13023,10 @@ pub const PackageManager = struct { resolution.fmt(this.lockfile.buffers.string_bytes.items, .posix), }); } + const entry = this.summary.packages_with_blocked_scripts.getOrPut(this.manager.allocator, name_hash) catch bun.outOfMemory(); + if (!entry.found_existing) entry.value_ptr.* = 0; + entry.value_ptr.* += count; } - - const entry = this.summary.packages_with_blocked_scripts.getOrPut(this.manager.allocator, name_hash) catch bun.outOfMemory(); - if (!entry.found_existing) entry.value_ptr.* = 0; - entry.value_ptr.* += count; }, }