Skip to content

Commit 677090f

Browse files
committed
use ternary
1 parent 83bef46 commit 677090f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/aws-cdk-lib/aws-ecs/lib/runtime-platform.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,8 @@ export class OperatingSystemFamily {
9393
* Returns true if the operating system family is Windows
9494
*/
9595
public isWindows(): boolean {
96-
if (this._operatingSystemFamily?.toLowerCase().includes('windows')) {
97-
return true;
98-
}
99-
return false;
96+
return this._operatingSystemFamily?.toLowerCase().startsWith('windows') ? true : false;
10097
}
101-
10298
}
10399

104100
/**

0 commit comments

Comments
 (0)