]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
docs(sandcastle): fix stale JSDoc referencing empty string sentinel
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 7 May 2026 08:57:20 +0000 (10:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 7 May 2026 08:57:20 +0000 (10:57 +0200)
.sandcastle/refinement-loop.ts

index b82275a15a2c8a19efa014fbfaac11419d8ff176..e3f1208080867be253089bffbd873e179922bed1 100644 (file)
@@ -233,9 +233,9 @@ export async function runRefinementLoop (
 }
 
 /**
- * Captures the current HEAD SHA, returning empty string on failure.
+ * Captures the current HEAD SHA, returning null on failure.
  * @param cwd - Working directory for git operations.
- * @returns The HEAD SHA or empty string.
+ * @returns The HEAD SHA or null.
  */
 async function captureHeadSha (cwd: string): Promise<null | string> {
   try {
@@ -631,7 +631,7 @@ async function runCritic (
 /**
  * Returns true if the best-state reset should be applied after the loop.
  * @param status - Final loop status.
- * @param bestSha - Best intermediate SHA (empty string if none captured).
+ * @param bestSha - Best intermediate SHA (null if none captured).
  * @returns True if reset should be applied.
  */
 function shouldResetToBest (status: LoopStatus, bestSha: null | string): boolean {