Skip to content

Commit d9d314e

Browse files
authored
Update extensions/git/src/commands.ts
1 parent bec65e8 commit d9d314e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extensions/git/src/commands.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,9 +1056,8 @@ export class CommandCenter {
10561056
}
10571057

10581058
const selectionsBeforeRevert = textEditor.selections;
1059-
await this._revertChanges(textEditor, selectedChanges).then(() => {
1060-
textEditor.selections = selectionsBeforeRevert;
1061-
});
1059+
await this._revertChanges(textEditor, selectedChanges);
1060+
textEditor.selections = selectionsBeforeRevert;
10621061
}
10631062

10641063
private async _revertChanges(textEditor: TextEditor, changes: LineChange[]): Promise<void> {

0 commit comments

Comments
 (0)