Skip to content

Commit 512f6c1

Browse files
committed
Fix ts error
1 parent 1a3889d commit 512f6c1

File tree

1 file changed

+1
-1
lines changed
  • src/shadow/arborist/lib/arborist

1 file changed

+1
-1
lines changed

src/shadow/arborist/lib/arborist/reify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function updateNode(
346346
firstPatchedVersionIdentifier
347347
)
348348
const targetPackument = targetVersion
349-
? packument.versions[targetVersion]
349+
? packument!.versions[targetVersion]
350350
: undefined
351351
// Check !targetVersion to make TypeScript happy.
352352
if (!targetVersion || !targetPackument) {

0 commit comments

Comments
 (0)