From b84e9749f645914acf4312d857716d7eeb9135c4 Mon Sep 17 00:00:00 2001 From: Steven Evans Date: Tue, 3 Jul 2018 23:50:25 -0400 Subject: [PATCH] [chore] TSLint violation cleanup --- utils/StringHelperFunctions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/StringHelperFunctions.ts b/utils/StringHelperFunctions.ts index a6526f830..7ca429146 100644 --- a/utils/StringHelperFunctions.ts +++ b/utils/StringHelperFunctions.ts @@ -49,7 +49,8 @@ function longestCommonStart(strings: string[]): string { if (!containsAllStrings(strings)) {return ""; } if (strings.length === 0) {return ""; } - const A: string[] = strings.concat().sort(); + const A: string[] = strings.concat() + .sort(); const a1: string = A[0]; const a2: string = A[A.length - 1]; const L: number = a1.length; @@ -132,7 +133,7 @@ function isHTML(str: string): boolean { const element: HTMLDivElement = document.createElement("div"); element.innerHTML = str; const c: NodeListOf = element.childNodes; - for (let i: number = c.length-1; i >= 0; i--) { + for (let i: number = c.length - 1; i >= 0; i--) { if (c[i].nodeType === 1) { return true; }