fix: eslint

This commit is contained in:
Guillaume Chau
2018-05-21 20:00:45 +02:00
parent 878f966b1f
commit 65a77f9202
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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) {
+7 -4
View File
@@ -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
}, {})
}