From 65a77f920261d73f9ee6c8ba89c923a44831bbca Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 21 May 2018 20:00:45 +0200 Subject: [PATCH] fix: eslint --- src/smart-query.js | 2 +- src/utils.js | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/smart-query.js b/src/smart-query.js index 2dc62bd..8b2fd39 100644 --- a/src/smart-query.js +++ b/src/smart-query.js @@ -87,7 +87,7 @@ export default class SmartQuery extends SmartApollo { }) } - if (this.options.fetchPolicy !== "no-cache") { + if (this.options.fetchPolicy !== 'no-cache') { const currentResult = this.maySetLoading() if (!currentResult.loading) { diff --git a/src/utils.js b/src/utils.js index 6db825c..50e0159 100644 --- a/src/utils.js +++ b/src/utils.js @@ -4,7 +4,7 @@ import oDebounce from 'throttle-debounce/debounce' export const Globals = {} function factory (action) { - return (cb, time) => action(time. cb) + return (cb, time) => action(time.cb) } export const throttle = factory(oThrottle) @@ -22,8 +22,11 @@ export function reapply (options, context) { return options } -export function omit(obj, properties) { +export function omit (obj, properties) { return Object.entries(obj) - .filter(([key]) => !properties.includes(key)) - .reduce((c, [key, val]) => (c[key] = val, c), {}) + .filter(([key]) => !properties.includes(key)) + .reduce((c, [key, val]) => { + c[key] = val + return c + }, {}) }