Skip to content

Commit 9f28e4c

Browse files
author
Keegan Irby
committed
Remove redundant isEditorForSession variable
1 parent 008746d commit 9f28e4c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ function formatLogEvent(logEvent: LiveTailSessionLogEvent): string {
107107
//This allows for newly added log events to stay in view.
108108
function getTextEditorsToScroll(document: vscode.TextDocument): vscode.TextEditor[] {
109109
return vscode.window.visibleTextEditors.filter((editor) => {
110-
const isEditorForSession = editor.document === document
111-
if (!isEditorForSession) {
110+
if (editor.document !== document) {
112111
return false
113112
}
114113
return editor.visibleRanges[0].contains(new vscode.Position(document.lineCount - 1, 0))

0 commit comments

Comments
 (0)