Skip to content

Commit

Permalink
Use object destructuring to please the ESLint gods
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean committed Oct 21, 2017
1 parent 0bd54f2 commit 79228f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cachios.js
Expand Up @@ -43,7 +43,7 @@ Cachios.prototype.setCachedValue = function setCachedValue(cacheKey, value, ttl)
};

Cachios.prototype.request = function request(config) {
const ttl = config.ttl;
const { ttl } = config;

const cacheKey = this.getCacheKey(config);
const cachedValue = this.getCachedValue(cacheKey);
Expand Down

0 comments on commit 79228f8

Please sign in to comment.