File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const activateRadiator = (room:GroupType) => {
76
76
const checkGroup = ( group :GroupType [ ] ) :boolean => {
77
77
let returnValue :boolean = false ;
78
78
79
- for ( let room of group ) {
79
+ for ( const room of group ) {
80
80
if ( checkIsWindowOpen ( room ) ) {
81
81
returnValue = true ;
82
82
}
@@ -87,8 +87,8 @@ const checkGroup = (group:GroupType[]):boolean => {
87
87
88
88
const checkAllWindows = ( ) => {
89
89
90
- let northOpen = checkGroup ( northGroup ) ;
91
- let southOpen = checkGroup ( southGroup ) ;
90
+ const northOpen = checkGroup ( northGroup ) ;
91
+ const southOpen = checkGroup ( southGroup ) ;
92
92
if ( northOpen && southOpen ) {
93
93
deactivateAllRadiators ( house ) ;
94
94
return ;
@@ -97,7 +97,7 @@ const checkAllWindows = () => {
97
97
activateAllRadiators ( house ) ;
98
98
return ;
99
99
}
100
- for ( let room of house ) {
100
+ for ( const room of house ) {
101
101
if ( checkIsWindowOpen ( room ) ) {
102
102
deactivateRadiator ( room ) ;
103
103
} else {
You can’t perform that action at this time.
0 commit comments