Skip to content

Commit

Permalink
Nicer rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Jun 9, 2020
1 parent 0865798 commit 9cbc4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pkglint/lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ function isJSII(pkg: PackageJson): boolean {
* @param pkg
*/
function isAWS(pkg: PackageJson): boolean {
return pkg.json['cdk-build'] && pkg.json['cdk-build'].cloudformation;
return pkg.json['cdk-build']?.cloudformation != null;
}

/**
Expand Down

0 comments on commit 9cbc4e4

Please sign in to comment.