Skip to content

Commit 008746d

Browse files
author
Keegan Irby
committed
Remove redundant position variable
1 parent e3ee3f7 commit 008746d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,8 @@ function getTextEditorsToScroll(document: vscode.TextDocument): vscode.TextEdito
116116
}
117117

118118
function scrollTextEditorToBottom(editor: vscode.TextEditor) {
119-
const topPosition = new vscode.Position(Math.max(editor.document.lineCount - 2, 0), 0)
120-
const bottomPosition = new vscode.Position(Math.max(editor.document.lineCount - 2, 0), 0)
121-
editor.revealRange(new vscode.Range(topPosition, bottomPosition), vscode.TextEditorRevealType.Default)
119+
const position = new vscode.Position(Math.max(editor.document.lineCount - 2, 0), 0)
120+
editor.revealRange(new vscode.Range(position, position), vscode.TextEditorRevealType.Default)
122121
}
123122

124123
async function updateTextDocumentWithNewLogEvents(

0 commit comments

Comments
 (0)