mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-02 19:37:34 +01:00
[chore] TSLint violation cleanup
This commit is contained in:
parent
78c5a1b0f4
commit
b84e9749f6
@ -49,7 +49,8 @@ function longestCommonStart(strings: string[]): string {
|
|||||||
if (!containsAllStrings(strings)) {return ""; }
|
if (!containsAllStrings(strings)) {return ""; }
|
||||||
if (strings.length === 0) {return ""; }
|
if (strings.length === 0) {return ""; }
|
||||||
|
|
||||||
const A: string[] = strings.concat().sort();
|
const A: string[] = strings.concat()
|
||||||
|
.sort();
|
||||||
const a1: string = A[0];
|
const a1: string = A[0];
|
||||||
const a2: string = A[A.length - 1];
|
const a2: string = A[A.length - 1];
|
||||||
const L: number = a1.length;
|
const L: number = a1.length;
|
||||||
@ -132,7 +133,7 @@ function isHTML(str: string): boolean {
|
|||||||
const element: HTMLDivElement = document.createElement("div");
|
const element: HTMLDivElement = document.createElement("div");
|
||||||
element.innerHTML = str;
|
element.innerHTML = str;
|
||||||
const c: NodeListOf<Node & ChildNode> = element.childNodes;
|
const c: NodeListOf<Node & ChildNode> = 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) {
|
if (c[i].nodeType === 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user