From d60959f0af32b1de102c874fd26fdc382b48bf0b Mon Sep 17 00:00:00 2001 From: Claudia Meadows Date: Tue, 13 Dec 2022 20:35:50 -0800 Subject: [PATCH] Remove double `getUrl` that would never work --- lib/utils/redis-mock-factory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/redis-mock-factory.js b/lib/utils/redis-mock-factory.js index 20a9193..18b7f84 100644 --- a/lib/utils/redis-mock-factory.js +++ b/lib/utils/redis-mock-factory.js @@ -7,7 +7,7 @@ let knownRedisHosts = {}; const getUrl = (opts) => opts.host + ':' + opts.port + (opts.path || ''); module.exports.getRedisMock = (createClientOptions) => { - const url = getUrl(getUrl(createClientOptions)); + const url = getUrl(createClientOptions); if (!knownRedisHosts[url]) { knownRedisHosts[url] = new RedisMock();