From 4e035278179e38f1d2a433b6dd07f64b6ff62185 Mon Sep 17 00:00:00 2001 From: Vass Bence Date: Mon, 30 Dec 2019 12:38:03 +0100 Subject: [PATCH] Fixed return awaits --- examples/api-hooks/libs/fetch.js | 2 +- examples/autocomplete-suggestions/libs/fetcher.js | 2 +- examples/basic-typescript/libs/fetch.ts | 2 +- examples/focus-revalidate/libs/fetch.js | 2 +- examples/global-fetcher/libs/fetch.js | 2 +- examples/optimistic-ui/libs/fetch.js | 2 +- examples/pagination/libs/fetch.js | 2 +- examples/prefetch-preload/libs/fetch.js | 2 +- examples/refetch-interval/libs/fetch.js | 2 +- examples/server-render/libs/fetcher.js | 2 +- examples/suspense/libs/fetch.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/api-hooks/libs/fetch.js b/examples/api-hooks/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/api-hooks/libs/fetch.js +++ b/examples/api-hooks/libs/fetch.js @@ -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() } diff --git a/examples/autocomplete-suggestions/libs/fetcher.js b/examples/autocomplete-suggestions/libs/fetcher.js index c2f95fc72..ac9985e9d 100644 --- a/examples/autocomplete-suggestions/libs/fetcher.js +++ b/examples/autocomplete-suggestions/libs/fetcher.js @@ -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() } diff --git a/examples/basic-typescript/libs/fetch.ts b/examples/basic-typescript/libs/fetch.ts index 7cb62f5fb..21084db82 100644 --- a/examples/basic-typescript/libs/fetch.ts +++ b/examples/basic-typescript/libs/fetch.ts @@ -5,5 +5,5 @@ export default async function( init?: RequestInit ): Promise { const res = await fetch(input, init) - return await res.json() + return res.json() } diff --git a/examples/focus-revalidate/libs/fetch.js b/examples/focus-revalidate/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/focus-revalidate/libs/fetch.js +++ b/examples/focus-revalidate/libs/fetch.js @@ -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() } diff --git a/examples/global-fetcher/libs/fetch.js b/examples/global-fetcher/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/global-fetcher/libs/fetch.js +++ b/examples/global-fetcher/libs/fetch.js @@ -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() } diff --git a/examples/optimistic-ui/libs/fetch.js b/examples/optimistic-ui/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/optimistic-ui/libs/fetch.js +++ b/examples/optimistic-ui/libs/fetch.js @@ -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() } diff --git a/examples/pagination/libs/fetch.js b/examples/pagination/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/pagination/libs/fetch.js +++ b/examples/pagination/libs/fetch.js @@ -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() } diff --git a/examples/prefetch-preload/libs/fetch.js b/examples/prefetch-preload/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/prefetch-preload/libs/fetch.js +++ b/examples/prefetch-preload/libs/fetch.js @@ -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() } diff --git a/examples/refetch-interval/libs/fetch.js b/examples/refetch-interval/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/refetch-interval/libs/fetch.js +++ b/examples/refetch-interval/libs/fetch.js @@ -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() } diff --git a/examples/server-render/libs/fetcher.js b/examples/server-render/libs/fetcher.js index c2f95fc72..ac9985e9d 100644 --- a/examples/server-render/libs/fetcher.js +++ b/examples/server-render/libs/fetcher.js @@ -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() } diff --git a/examples/suspense/libs/fetch.js b/examples/suspense/libs/fetch.js index c2f95fc72..ac9985e9d 100644 --- a/examples/suspense/libs/fetch.js +++ b/examples/suspense/libs/fetch.js @@ -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() }