Skip to content

Commit c7a7534

Browse files
authored
Update radiator_window.ts
changed let to const
1 parent 8fc785c commit c7a7534

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

radiator_window.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const activateRadiator = (room:GroupType) => {
7676
const checkGroup = (group:GroupType[]):boolean => {
7777
let returnValue:boolean = false;
7878

79-
for (let room of group) {
79+
for (const room of group) {
8080
if (checkIsWindowOpen(room)) {
8181
returnValue = true;
8282
}
@@ -87,8 +87,8 @@ const checkGroup = (group:GroupType[]):boolean => {
8787

8888
const checkAllWindows = () => {
8989

90-
let northOpen = checkGroup(northGroup);
91-
let southOpen = checkGroup(southGroup);
90+
const northOpen = checkGroup(northGroup);
91+
const southOpen = checkGroup(southGroup);
9292
if (northOpen && southOpen) {
9393
deactivateAllRadiators(house);
9494
return;
@@ -97,7 +97,7 @@ const checkAllWindows = () => {
9797
activateAllRadiators(house);
9898
return;
9999
}
100-
for (let room of house) {
100+
for (const room of house) {
101101
if (checkIsWindowOpen(room)) {
102102
deactivateRadiator(room);
103103
} else {

0 commit comments

Comments
 (0)