From 8a653692e3b34752b8fb7ea4abfcefbf19f09442 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:02:48 +0000 Subject: [PATCH] chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- media/contentCreator/initPageStyle.css | 2 +- media/contentCreator/welcomePageStyle.css | 2 -- src/features/contentCreator/initPage.ts | 2 +- src/features/contentCreator/welcomePage.ts | 4 ++-- src/webview/apps/contentCreator/initPageApp.ts | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/media/contentCreator/initPageStyle.css b/media/contentCreator/initPageStyle.css index 26cd3b40e..106857f10 100644 --- a/media/contentCreator/initPageStyle.css +++ b/media/contentCreator/initPageStyle.css @@ -102,4 +102,4 @@ vscode-checkbox i { .log-level-div { margin: 4px 0px; -} \ No newline at end of file +} diff --git a/media/contentCreator/welcomePageStyle.css b/media/contentCreator/welcomePageStyle.css index fbcfe1bd5..04f1f5ac3 100644 --- a/media/contentCreator/welcomePageStyle.css +++ b/media/contentCreator/welcomePageStyle.css @@ -107,5 +107,3 @@ body { .menu .menu-item img:hover { background-color: #45494E; } - - diff --git a/src/features/contentCreator/initPage.ts b/src/features/contentCreator/initPage.ts index e8e263bb8..ddced4254 100644 --- a/src/features/contentCreator/initPage.ts +++ b/src/features/contentCreator/initPage.ts @@ -338,7 +338,7 @@ export class AnsibleCreatorInit { if (logFilePath) { logFilePathUrl = logFilePath; } else { - logFilePathUrl = os.tmpdir() + "/ansible-creator.log"; + logFilePathUrl = `${os.tmpdir()}/ansible-creator.log`; } ansibleCreatorInitCommand += ` --lf=${logFilePathUrl}`; diff --git a/src/features/contentCreator/welcomePage.ts b/src/features/contentCreator/welcomePage.ts index 1fe66649f..fba66746e 100644 --- a/src/features/contentCreator/welcomePage.ts +++ b/src/features/contentCreator/welcomePage.ts @@ -208,7 +208,7 @@ export class AnsibleCreatorMenu { } private async getSystemDetails(webView: vscode.Webview) { - let systemInfo: any = {}; + const systemInfo: any = {}; // get ansible version and path const ansibleVersion = await this.getBinDetail("ansible", "--version"); @@ -222,7 +222,7 @@ export class AnsibleCreatorMenu { console.debug("[ansible-creator] No version information from ansible"); } - let ansibleCoreVersion = versionInfoObjKeys[0].includes(" [") + const ansibleCoreVersion = versionInfoObjKeys[0].includes(" [") ? versionInfoObjKeys[0].split(" [") : versionInfoObjKeys[0].split(" "); diff --git a/src/webview/apps/contentCreator/initPageApp.ts b/src/webview/apps/contentCreator/initPageApp.ts index 429e12605..444609767 100644 --- a/src/webview/apps/contentCreator/initPageApp.ts +++ b/src/webview/apps/contentCreator/initPageApp.ts @@ -222,7 +222,7 @@ function handleInitCreateClick() { const fullCollectionName = `${initNamespaceNameTextField.value.trim()}.${initCollectionNameTextField.value.trim()}`; let commandString: string = `Command: $ ansible-creator init ${fullCollectionName} --init-path ${initPathUrlTextField.value.trim()}`; if (forceCheckbox.checked) { - commandString = commandString + " --force"; + commandString = `${commandString} --force`; } vscode.postMessage({