Skip to content

Commit 0795f0f

Browse files
committed
Remove custom handling of this?
1 parent f38fde6 commit 0795f0f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/shell-api/src/collection.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,15 +1335,6 @@ export default class Collection extends ShellApiWithMongoClass {
13351335
return all.sort((a, b) => b.nIndexesWas - a.nIndexesWas)[0];
13361336
}
13371337

1338-
if (error?.codeName === 'IndexNotFound') {
1339-
return {
1340-
ok: error.ok,
1341-
errmsg: error.errmsg,
1342-
code: error.code,
1343-
codeName: error.codeName,
1344-
};
1345-
}
1346-
13471338
throw error;
13481339
}
13491340
}

0 commit comments

Comments
 (0)