diff --git a/lib/interceptor/cache.js b/lib/interceptor/cache.js index 666a87ef3e5..b03734aa886 100644 --- a/lib/interceptor/cache.js +++ b/lib/interceptor/cache.js @@ -19,7 +19,7 @@ module.exports = (opts = {}) => { } = opts if (typeof opts !== 'object' || opts === null) { - throw new TypeError(`expected type of opts to be an Object, got ${store === null ? 'null' : typeof store}`) + throw new TypeError(`expected type of opts to be an Object, got ${opts === null ? 'null' : typeof opts}`) } assertCacheStore(store, 'opts.store')