Skip to content

Commit e3f0fb6

Browse files
remove unncessary trycatch
1 parent 33f1242 commit e3f0fb6

File tree

1 file changed

+1
-5
lines changed
  • packages/app/src/app/overmind/effects/vscode

1 file changed

+1
-5
lines changed

packages/app/src/app/overmind/effects/vscode/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,7 @@ export class VSCodeEffect {
215215
moduleShortid: string,
216216
operation: (string | number)[]
217217
) {
218-
try {
219-
await this.modelsHandler.applyOperation(moduleShortid, operation);
220-
} catch (error) {
221-
throw error;
222-
}
218+
return this.modelsHandler.applyOperation(moduleShortid, operation);
223219
}
224220

225221
public updateOptions(options: { readOnly: boolean }) {

0 commit comments

Comments
 (0)