Skip to content

Commit

Permalink
Merge pull request #193 from abdulla783/patch-2
Browse files Browse the repository at this point in the history
Remove test variable as not defined and not required at all
  • Loading branch information
towfiqi authored Apr 2, 2024
2 parents d58a716 + 51da47f commit 0c3068d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/adwords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const getKeywordsVolume = async (keywords: KeywordType[]): Promise<{error
// Generate Access Token
let accessToken = '';
const cachedAccessToken:string|false|undefined = memoryCache.get('adwords_token');
if (cachedAccessToken && !test) {
if (cachedAccessToken) {
accessToken = cachedAccessToken;
} else {
accessToken = await getAdwordsAccessToken(credentials);
Expand Down

0 comments on commit 0c3068d

Please sign in to comment.