diff --git a/index.js b/index.js index 9a663dd..ff2809f 100644 --- a/index.js +++ b/index.js @@ -188,13 +188,13 @@ module.exports = function(input, map) { // Read the cached information only once and if enable if (cache === null) { if (config.cache) { - var thunk = findCacheDir({ - name: "eslint-loader", - thunk: true, - create: true, - }) - cachePath = thunk("data.json") || cacheFallback try { + var thunk = findCacheDir({ + name: "eslint-loader", + thunk: true, + create: true, + }) + cachePath = thunk("data.json") cache = require(cachePath) } catch (e) {