refactor: finish lint cleanup
This commit is contained in:
@@ -3,7 +3,7 @@ import { open } from "node:fs/promises";
|
||||
import { classifyArtifactPath } from "../ArtifactGraphConstruction.js";
|
||||
import type { ArtifactNode } from "../../domain/artifactGraph.js";
|
||||
|
||||
export const classifyContainerExtension = (
|
||||
const classifyContainerExtension = (
|
||||
path: string,
|
||||
): ArtifactNode["format"] | undefined => {
|
||||
const lower = path.toLowerCase();
|
||||
|
||||
@@ -31,10 +31,10 @@ export interface PendingIntegrityContradiction {
|
||||
readonly unpacked: boolean;
|
||||
}
|
||||
|
||||
export const UNAVAILABLE_UNPACKED_LIMITATION =
|
||||
const UNAVAILABLE_UNPACKED_LIMITATION =
|
||||
"ASAR unpacked companion bytes were unavailable; no content hash or child artifact was produced.";
|
||||
|
||||
export const emptyScan = (): {
|
||||
const emptyScan = (): {
|
||||
readonly nodes: Map<string, ArtifactNode>;
|
||||
readonly occurrences: MutableOccurrence[];
|
||||
readonly pendingContradictions: PendingIntegrityContradiction[];
|
||||
|
||||
@@ -75,6 +75,8 @@ export const runControlledReplayValidated = async (
|
||||
options.signal,
|
||||
);
|
||||
if (!prepared.ok) return prepared;
|
||||
if (isAborted(options.signal))
|
||||
return err(new AnalysisCancelledError(OPERATION));
|
||||
|
||||
if (input.mode === "plan")
|
||||
return ok(
|
||||
|
||||
Reference in New Issue
Block a user