From 944fe51fc44473cc98b96dbd111fd4c46dadf92c Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Thu, 8 Aug 2024 17:22:50 +0100 Subject: [PATCH] Fix linting errors --- src/utils/examplesUtil.mts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/examplesUtil.mts b/src/utils/examplesUtil.mts index 183dcb2..16e5a7a 100644 --- a/src/utils/examplesUtil.mts +++ b/src/utils/examplesUtil.mts @@ -2,7 +2,9 @@ import { join as joinPosix } from "path/posix"; import Logger from "../logger.mjs"; import { existsSync, readFileSync, rmSync } from "fs"; import { homedir } from "os"; -import { getGit, sparseCheckout, sparseCloneRepository, execAsync } from "./gitUtil.mjs"; +import { + getGit, sparseCheckout, sparseCloneRepository, execAsync +} from "./gitUtil.mjs"; import Settings from "../settings.mjs"; import { checkForInstallationRequirements } from "./requirementsUtil.mjs"; import { cp } from "fs/promises"; @@ -139,7 +141,7 @@ export async function setupExample( const gitPath = await getGit(settings); if (existsSync(examplesRepoPath)) { - let ref = await execAsync( + const ref = await execAsync( `cd "${examplesRepoPath}" && ${ process.env.ComSpec === "powershell.exe" ? "&" : "" }"${gitPath}" rev-parse HEAD`