mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
Update src/install/lockfile/Package.zig
Co-authored-by: taylor.fish <contact@taylor.fish>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user