Skip to content

Commit 65a77f9

Browse files
author
Guillaume Chau
committed
fix: eslint
1 parent 878f966 commit 65a77f9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/smart-query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default class SmartQuery extends SmartApollo {
8787
})
8888
}
8989

90-
if (this.options.fetchPolicy !== "no-cache") {
90+
if (this.options.fetchPolicy !== 'no-cache') {
9191
const currentResult = this.maySetLoading()
9292

9393
if (!currentResult.loading) {

src/utils.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import oDebounce from 'throttle-debounce/debounce'
44
export const Globals = {}
55

66
function factory (action) {
7-
return (cb, time) => action(time. cb)
7+
return (cb, time) => action(time.cb)
88
}
99

1010
export const throttle = factory(oThrottle)
@@ -22,8 +22,11 @@ export function reapply (options, context) {
2222
return options
2323
}
2424

25-
export function omit(obj, properties) {
25+
export function omit (obj, properties) {
2626
return Object.entries(obj)
27-
.filter(([key]) => !properties.includes(key))
28-
.reduce((c, [key, val]) => (c[key] = val, c), {})
27+
.filter(([key]) => !properties.includes(key))
28+
.reduce((c, [key, val]) => {
29+
c[key] = val
30+
return c
31+
}, {})
2932
}

0 commit comments

Comments
 (0)