From 6f0bbe3ed72fa46db979ccb5e3ba910441edcf08 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Fri, 27 Apr 2018 23:15:05 -0400 Subject: [PATCH] Lint Fix --- src/completion/xquery-completion-item-provider.ts | 2 +- src/formatting/commands/minifyXml.ts | 2 +- src/formatting/xml-formatter.ts | 2 +- src/tree-view/xml-tree-data-provider.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/completion/xquery-completion-item-provider.ts b/src/completion/xquery-completion-item-provider.ts index d9d9941..4beb7ef 100644 --- a/src/completion/xquery-completion-item-provider.ts +++ b/src/completion/xquery-completion-item-provider.ts @@ -48,4 +48,4 @@ export class XQueryCompletionItemProvider implements CompletionItemProvider { return completionItem; } -} \ No newline at end of file +} diff --git a/src/formatting/commands/minifyXml.ts b/src/formatting/commands/minifyXml.ts index 4c8553f..a73ea87 100644 --- a/src/formatting/commands/minifyXml.ts +++ b/src/formatting/commands/minifyXml.ts @@ -20,4 +20,4 @@ export function minifyXml(editor: TextEditor, edit: TextEditorEdit): void { const range = new Range(editor.document.positionAt(0), endPosition); edit.replace(range, xmlFormatter.minifyXml(editor.document.getText(), xmlFormattingOptions)); -} \ No newline at end of file +} diff --git a/src/formatting/xml-formatter.ts b/src/formatting/xml-formatter.ts index 2dd90d7..ee16c1d 100644 --- a/src/formatting/xml-formatter.ts +++ b/src/formatting/xml-formatter.ts @@ -29,4 +29,4 @@ export class XmlFormatterFactory { return (XmlFormatterFactory._xmlFormatter = xmlFormatterImplementation); } -} \ No newline at end of file +} diff --git a/src/tree-view/xml-tree-data-provider.ts b/src/tree-view/xml-tree-data-provider.ts index 4012321..347b8f8 100644 --- a/src/tree-view/xml-tree-data-provider.ts +++ b/src/tree-view/xml-tree-data-provider.ts @@ -94,7 +94,7 @@ export class XmlTreeDataProvider implements TreeDataProvider { const array = new Array(); for (let i = 0; i < node.childNodes.length; i++) { - let child = node.childNodes[i]; + const child = node.childNodes[i]; if (child.tagName) { array.push(child); @@ -139,4 +139,4 @@ export class XmlTreeDataProvider implements TreeDataProvider { this._onDidChangeTreeData.fire(); } -} \ No newline at end of file +}