From 61ae03662c3db80d7ffd912250e48b2ecf3258ee Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:17:35 -0800 Subject: [PATCH] #15059 follow-up (#15118) --- src/install/install.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; }, }