Skip to content

Commit

Permalink
chore: suppress a type error (#31751)
Browse files Browse the repository at this point in the history
Not sure how this is not causing a compilation error at CDK build time, but it's a red underline in my IDE and a compilation error in the new CLI repo.

Fixing it.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr authored Oct 14, 2024
1 parent af89640 commit b9504f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/@aws-cdk/node-bundle/src/api/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class Bundle {
throw new Error(`Multiple versions detected for external dependency: ${name} (${Array.from(versions).join(',')})`);
}

return versions.values().next().value;
return versions.values().next().value!;
}

private closestPackagePath(fdp: string): string {
Expand Down

0 comments on commit b9504f6

Please sign in to comment.