Skip to content

Commit 53ecdb9

Browse files
authored
Update radiator_window.ts
Optimization of checkGroup method.
1 parent c7a7534 commit 53ecdb9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

radiator_window.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,12 @@ const activateRadiator = (room:GroupType) => {
7474
}
7575

7676
const checkGroup = (group:GroupType[]):boolean => {
77-
let returnValue:boolean = false;
78-
7977
for (const room of group) {
8078
if (checkIsWindowOpen(room)) {
81-
returnValue = true;
79+
return true;
8280
}
8381
}
84-
return returnValue;
82+
return false;
8583
}
8684

8785

0 commit comments

Comments
 (0)