]> Git Repo - pico-vscode.git/commitdiff
Fix linting errors
authorWilliam Vinnicombe <[email protected]>
Thu, 8 Aug 2024 16:22:50 +0000 (17:22 +0100)
committerWilliam Vinnicombe <[email protected]>
Thu, 8 Aug 2024 16:22:50 +0000 (17:22 +0100)
src/utils/examplesUtil.mts

index 183dcb2b1a1eab24ef5094c66758f1893daacfdf..16e5a7a1a0ec9636bf20ae122c205f563a4ea209 100644 (file)
@@ -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`
This page took 0.027417 seconds and 4 git commands to generate.