code cleanup
This commit is contained in:
parent
49296e53f0
commit
2a577aaea7
4 changed files with 18 additions and 18 deletions
|
|
@ -64,7 +64,7 @@ class CurrentWeather extends WeatherDisplay {
|
|||
// test for data received
|
||||
if (!observations) {
|
||||
console.error('All current weather stations exhausted');
|
||||
if (this.enabled) this.setStatus(STATUS.failed);
|
||||
if (this.isEnabled) this.setStatus(STATUS.failed);
|
||||
// send failed to subscribers
|
||||
this.getDataCallback(undefined);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue