Skip to content

Commit

Permalink
Fixed return awaits (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
vassbence authored and shuding committed Dec 30, 2019
1 parent 498e056 commit 36eb040
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/api-hooks/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/autocomplete-suggestions/libs/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/basic-typescript/libs/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export default async function<JSON = any>(
init?: RequestInit
): Promise<JSON> {
const res = await fetch(input, init)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/focus-revalidate/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/global-fetcher/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/optimistic-ui/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/pagination/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/prefetch-preload/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/refetch-interval/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/server-render/libs/fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}
2 changes: 1 addition & 1 deletion examples/suspense/libs/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import fetch from 'isomorphic-unfetch'

export default async function (...args) {
const res = await fetch(...args)
return await res.json()
return res.json()
}

0 comments on commit 36eb040

Please sign in to comment.