Remove unnecessary import

This commit is contained in:
Gab 2021-08-02 08:31:51 +02:00
parent 0d68f5338c
commit 04508ac17e

View File

@ -1,5 +1,5 @@
import { Fetcher } from '@commerce/utils/types'
import { ErrorProps, FetcherError } from '@commerce/utils/errors'
import { FetcherError } from '@commerce/utils/errors'
async function getText(res: Response) {
try {
@ -48,5 +48,6 @@ export const fetcher: Fetcher = async ({
}
return data
}
throw await getError(res)
}