From 7d807d2fc5fe6566f2691543bf0ecda394ff5ebb Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 14 Aug 2021 20:49:39 -0400 Subject: [PATCH] ace2_inner: Delete unnecessary `container` variable --- src/static/js/ace2_inner.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 4ee9027a3..95283a421 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -3605,7 +3605,6 @@ function Ace2Inner(editorInfo, cssManagers) { } if (newNumLines !== lineNumbersShown) { - const container = sideDivInner; const fragment = outerDoc.createDocumentFragment(); // Create missing line and apply height @@ -3620,11 +3619,11 @@ function Ace2Inner(editorInfo, cssManagers) { fragment.appendChild(div); currentLine++; } - container.appendChild(fragment); + sideDivInner.appendChild(fragment); // Remove extra lines while (lineNumbersShown > newNumLines) { - container.removeChild(container.lastChild); + sideDivInner.removeChild(sideDivInner.lastChild); lineNumbersShown--; } }