Inline some functions

This commit is contained in:
veeck
2021-09-02 20:37:41 +02:00
parent 9ee11654a6
commit a7756cec13
3 changed files with 3 additions and 8 deletions

View File

@@ -71,13 +71,11 @@ WeatherProvider.register("ukmetofficedatahub", {
// For DataHub requests, the API key/secret are sent in the headers rather than as query strings.
// Headers defined according to Data Hub API (https://metoffice.apiconnect.ibmcloud.com/metoffice/production/api)
getHeaders() {
let headers = {
return {
accept: "application/json",
"x-ibm-client-id": this.config.apiKey,
"x-ibm-client-secret": this.config.apiSecret
};
return headers;
},
// Fetch data using supplied URL and request headers