Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 8, 2025
1 parent 1a3889d commit 512f6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shadow/arborist/lib/arborist/reify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function updateNode(
firstPatchedVersionIdentifier
)
const targetPackument = targetVersion
? packument.versions[targetVersion]
? packument!.versions[targetVersion]
: undefined
// Check !targetVersion to make TypeScript happy.
if (!targetVersion || !targetPackument) {
Expand Down

0 comments on commit 512f6c1

Please sign in to comment.