Skip to content

Commit

Permalink
chore: fix spelling error of if (#31353)
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol authored Sep 7, 2024
1 parent fa55194 commit 4fa7716
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function calculateTemplateDiff(currentTemplate: { [key: string]: any }, newTempl
/**
* Replace all references to the given logicalID on the given template, in-place
*
* Returns true iff any references were replaced.
* Returns true if any references were replaced.
*/
function propagateReplacedReferences(template: object, logicalId: string): boolean {
let ret = false;
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-ec2/lib/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export interface InstanceProps {
* UserData, which will cause CloudFormation to replace it if the UserData
* changes.
*
* @default - true iff `initOptions` is specified, false otherwise.
* @default - true if `initOptions` is specified, false otherwise.
*/
readonly userDataCausesReplacement?: boolean;

Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk/lib/notices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class NoticeFilter {
}

/**
* Returns true iff we should show this notice.
* Returns true if we should show this notice.
*/
apply(notice: Notice): boolean {
if (this.acknowledgedIssueNumbers.has(notice.issueNumber)) {
Expand All @@ -267,7 +267,7 @@ export class NoticeFilter {
}

/**
* Returns true iff we should show the notice.
* Returns true if we should show the notice.
*/
private applyVersion(notice: Notice, name: string, compareToVersion: string | undefined) {
if (compareToVersion === undefined) { return false; }
Expand Down

0 comments on commit 4fa7716

Please sign in to comment.