Skip to content

Commit e56ded5

Browse files
Merge #1050
1050: Remove import FetchError r=bidoubiwa a=K-Kumar-01 closes #1049 Signed-off-by: k-kumar-01 <[email protected]> Co-authored-by: k-kumar-01 <[email protected]>
2 parents c20e20c + d374b42 commit e56ded5

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)