We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83bef46 commit 677090fCopy full SHA for 677090f
1 file changed
packages/aws-cdk-lib/aws-ecs/lib/runtime-platform.ts
@@ -93,12 +93,8 @@ export class OperatingSystemFamily {
93
* Returns true if the operating system family is Windows
94
*/
95
public isWindows(): boolean {
96
- if (this._operatingSystemFamily?.toLowerCase().includes('windows')) {
97
- return true;
98
- }
99
- return false;
+ return this._operatingSystemFamily?.toLowerCase().startsWith('windows') ? true : false;
100
}
101
-
102
103
104
/**
0 commit comments