Skip to content

Commit d374b42

Browse files
committed
refactor(lib/indexes): remove import FetchError
Signed-off-by: k-kumar-01 <[email protected]>
1 parent c20e20c commit d374b42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/indexes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
SortableAttributes,
3434
SearchableAttributes,
3535
DisplayedAttributes,
36-
FetchError,
3736
} from '../types'
3837
import { sleep, removeUndefinedFromObject } from './utils'
3938
import { HttpRequests } from './http-requests'
@@ -225,7 +224,7 @@ class Index<T = Record<string, any>> {
225224
try {
226225
await this.delete()
227226
return true
228-
} catch (e: any | FetchError) {
227+
} catch (e) {
229228
if (e.errorCode === 'index_not_found') {
230229
return false
231230
}

0 commit comments

Comments
 (0)