Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 30, 2023
1 parent 085984f commit 8a65369
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion media/contentCreator/initPageStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ vscode-checkbox i {

.log-level-div {
margin: 4px 0px;
}
}
2 changes: 0 additions & 2 deletions media/contentCreator/welcomePageStyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,3 @@ body {
.menu .menu-item img:hover {
background-color: #45494E;
}


2 changes: 1 addition & 1 deletion src/features/contentCreator/initPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down
4 changes: 2 additions & 2 deletions src/features/contentCreator/welcomePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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(" ");

Expand Down
2 changes: 1 addition & 1 deletion src/webview/apps/contentCreator/initPageApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8a65369

Please sign in to comment.