From a59af6606bff420b7de28ad6b638c96aa0bdb0b6 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 12 Mar 2018 14:14:34 -0700 Subject: [PATCH] Use bang operator for array methods Part of #1319 --- src/AccessibilityManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AccessibilityManager.ts b/src/AccessibilityManager.ts index 1df6a7d233..5a1f47708a 100644 --- a/src/AccessibilityManager.ts +++ b/src/AccessibilityManager.ts @@ -121,10 +121,10 @@ export class AccessibilityManager implements IDisposable { let bottomBoundaryElement: HTMLElement; if (position === BoundaryPosition.Top) { topBoundaryElement = boundaryElement; - bottomBoundaryElement = this._rowElements.pop(); + bottomBoundaryElement = this._rowElements.pop()!; this._rowContainer.removeChild(bottomBoundaryElement); } else { - topBoundaryElement = this._rowElements.shift(); + topBoundaryElement = this._rowElements.shift()!; bottomBoundaryElement = boundaryElement; this._rowContainer.removeChild(topBoundaryElement); } @@ -170,7 +170,7 @@ export class AccessibilityManager implements IDisposable { } // Shrink rows as required while (this._rowElements.length > rows) { - this._rowContainer.removeChild(this._rowElements.pop()); + this._rowContainer.removeChild(this._rowElements.pop()!); } // Add bottom boundary listener