Skip to content

Commit

Permalink
Linter whining.
Browse files Browse the repository at this point in the history
  • Loading branch information
demmings committed Jun 17, 2023
1 parent 91aa93a commit c6fe055
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
14 changes: 12 additions & 2 deletions dist/CacheFinance.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ class CacheFinance {
return CacheFinance.getFinanceValueFromLongCache(cacheKey);
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromShortCache(cacheKey) {
const shortCache = CacheService.getScriptCache();

Expand All @@ -139,6 +144,11 @@ class CacheFinance {
return null;
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromLongCache(cacheKey) {
const longCache = new ScriptSettings();

Expand Down Expand Up @@ -1588,8 +1598,8 @@ class AlphaVantage {

const alphaVantageData = JSON.parse(jsonStr);
data.stockPrice = alphaVantageData["Global Quote"]["05. price"];
Logger.log("content=" + jsonStr);
Logger.log("Price=" + data.stockPrice);
Logger.log(`content=${jsonStr}`);
Logger.log(`Price=${data.stockPrice}`);
}
catch (ex) {
return data;
Expand Down
14 changes: 12 additions & 2 deletions dist/CacheFinanceTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ class CacheFinance {
return CacheFinance.getFinanceValueFromLongCache(cacheKey);
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromShortCache(cacheKey) {
const shortCache = CacheService.getScriptCache();

Expand All @@ -139,6 +144,11 @@ class CacheFinance {
return null;
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromLongCache(cacheKey) {
const longCache = new ScriptSettings();

Expand Down Expand Up @@ -2478,8 +2488,8 @@ class AlphaVantage {

const alphaVantageData = JSON.parse(jsonStr);
data.stockPrice = alphaVantageData["Global Quote"]["05. price"];
Logger.log("content=" + jsonStr);
Logger.log("Price=" + data.stockPrice);
Logger.log(`content=${jsonStr}`);
Logger.log(`Price=${data.stockPrice}`);
}
catch (ex) {
return data;
Expand Down
10 changes: 10 additions & 0 deletions src/CacheFinance.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ class CacheFinance {
return CacheFinance.getFinanceValueFromLongCache(cacheKey);
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromShortCache(cacheKey) {
const shortCache = CacheService.getScriptCache();

Expand All @@ -154,6 +159,11 @@ class CacheFinance {
return null;
}

/**
*
* @param {String} cacheKey
* @returns {any}
*/
static getFinanceValueFromLongCache(cacheKey) {
const longCache = new ScriptSettings();

Expand Down
4 changes: 2 additions & 2 deletions src/CacheFinanceWebSites.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,8 @@ class AlphaVantage {

const alphaVantageData = JSON.parse(jsonStr);
data.stockPrice = alphaVantageData["Global Quote"]["05. price"];
Logger.log("content=" + jsonStr);
Logger.log("Price=" + data.stockPrice);
Logger.log(`content=${jsonStr}`);
Logger.log(`Price=${data.stockPrice}`);
}
catch (ex) {
return data;
Expand Down

0 comments on commit c6fe055

Please sign in to comment.