Skip to content

Commit b395575

Browse files
committed
Address comments about ? operator
1 parent 75455fd commit b395575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/git/src/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ export class CommandCenter {
687687

688688
const activeTextEditor = window.activeTextEditor;
689689
// Must extract these now because opening a new document will change the activeTextEditor reference
690-
const previousVisibleRange = activeTextEditor && activeTextEditor.visibleRanges[0];
691-
const previousURI = activeTextEditor && activeTextEditor.document.uri;
692-
const previousSelection = activeTextEditor && activeTextEditor.selection;
690+
const previousVisibleRange = activeTextEditor?.visibleRanges[0];
691+
const previousURI = activeTextEditor?.document.uri;
692+
const previousSelection = activeTextEditor?.selection;
693693

694694
for (const uri of uris) {
695695
const opts: TextDocumentShowOptions = {

0 commit comments

Comments
 (0)