mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
Remove unnecessary import
This commit is contained in:
parent
0d68f5338c
commit
04508ac17e
@ -1,5 +1,5 @@
|
|||||||
import { Fetcher } from '@commerce/utils/types'
|
import { Fetcher } from '@commerce/utils/types'
|
||||||
import { ErrorProps, FetcherError } from '@commerce/utils/errors'
|
import { FetcherError } from '@commerce/utils/errors'
|
||||||
|
|
||||||
async function getText(res: Response) {
|
async function getText(res: Response) {
|
||||||
try {
|
try {
|
||||||
@ -48,5 +48,6 @@ export const fetcher: Fetcher = async ({
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
throw await getError(res)
|
throw await getError(res)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user