Skip to content

Commit bec65e8

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/git/src/commands.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,10 @@ export class CommandCenter {
10301030
return;
10311031
}
10321032

1033-
await this._revertChanges(textEditor, [...changes.slice(0, index), ...changes.slice(index + 1)]).then(() => {
1034-
const firstStagedLine = changes[index].modifiedStartLineNumber - 1;
1035-
textEditor.selections = [new Selection(firstStagedLine, 0, firstStagedLine, 0)];
1036-
});
1033+
await this._revertChanges(textEditor, [...changes.slice(0, index), ...changes.slice(index + 1)]);
1034+
1035+
const firstStagedLine = changes[index].modifiedStartLineNumber - 1;
1036+
textEditor.selections = [new Selection(firstStagedLine, 0, firstStagedLine, 0)];
10371037
}
10381038

10391039
@command('git.revertSelectedRanges', { diff: true })

0 commit comments

Comments
 (0)