Update src/install/lockfile/Package.zig

Co-authored-by: taylor.fish <contact@taylor.fish>
This commit is contained in:
Dylan Conway
2025-11-12 19:21:20 -08:00
committed by GitHub
parent 92187b9477
commit 08604b7363

View File

@@ -1589,7 +1589,7 @@ pub fn Package(comptime SemverIntType: type) type {
var nohoist_patterns: bun.collections.ArrayListDefault([]const u8) = try .initCapacity(nohoist_arr.items.len);
for (nohoist_arr.items.slice()) |nohoist_item| {
for (nohoist_arr.items.slice()) |*nohoist_item| {
if (!nohoist_item.isString()) {
try log.addError(source, nohoist_item.loc, "Expected a string pattern");
return error.InvalidPackageJSON;