Skip to content

Commit

Permalink
return early
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Dec 11, 2024
1 parent 633fcbf commit 06690a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/install/lockfile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2379,6 +2379,7 @@ pub fn appendPackageDedupe(this: *Lockfile, pkg: *Package, buf: string) OOM!Pack
for (existing_ids.items, 0..) |existing_id, i| {
if (pkg.resolution.order(&resolutions[existing_id], buf, buf) == .gt) {
try existing_ids.insert(this.allocator, i, new_id);
return new_id;
}
}

Expand Down

0 comments on commit 06690a5

Please sign in to comment.