Skip to content

Commit 4e04a8b

Browse files
Shortens try/catch block
1 parent 0656ec4 commit 4e04a8b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/webviews/plus/composer/composerWebview.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ export class ComposerWebviewProvider implements WebviewProvider<State, State, Co
322322
]);
323323

324324
if (untrackedPaths?.length) {
325-
try {
326-
await repo.git.staging?.unstageFiles(untrackedPaths);
327-
} catch {}
325+
await repo.git.staging?.unstageFiles(untrackedPaths).catch();
328326
}
329327

330328
const diffs = getSettledValue(diffsResult)!;

0 commit comments

Comments
 (0)