Skip to content

Commit

Permalink
Made provider const again, made localWrapper a return
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanKingdon committed Sep 3, 2023
1 parent 1275419 commit c5fed68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/default/weather/weatherprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ WeatherProvider.register = function (providerIdentifier, providerDetails) {
WeatherProvider.initialize = function (providerIdentifier, delegate) {
const pi = providerIdentifier.toLowerCase();

let provider = new WeatherProvider.providers[pi]();
const provider = new WeatherProvider.providers[pi]();
const config = Object.assign({}, provider.defaults, delegate.config);

provider.delegate = delegate;
Expand All @@ -165,7 +165,7 @@ WeatherProvider.initialize = function (providerIdentifier, delegate) {
}

if (config.allowOverrideNotification) {
provider = new LocalWrapper(provider);
return new LocalWrapper(provider);

Check failure on line 168 in modules/default/weather/weatherprovider.js

View workflow job for this annotation

GitHub Actions / test (18.x)

'LocalWrapper' is not defined

Check failure on line 168 in modules/default/weather/weatherprovider.js

View workflow job for this annotation

GitHub Actions / test (20.x)

'LocalWrapper' is not defined
}

return provider;
Expand Down

0 comments on commit c5fed68

Please sign in to comment.