refactor(ntfs): derive attribute coverage from the recorded issue (#16983)

This commit is contained in:
Vincent Koc
2026-12-05 15:33:44 +08:00
committed by GitHub
parent 27d1f06a8f
commit c809ee5405
2 changed files with 4 additions and 7 deletions
@@ -24,5 +24,5 @@
"src/domain/native/elfNoteLayout.ts": 1,
"src/domain/webBundleAnalyzerResult.ts": 1,
"src/domain/windows/ntfsMft.ts": 1,
"src/domain/windows/ntfsMftAttributes.ts": 2
"src/domain/windows/ntfsMftAttributes.ts": 1
}
+3 -6
View File
@@ -525,15 +525,12 @@ const walkMftAttributes = (
}
if (!complete && attributeIssue === null)
malformed(usedBytes, "Missing attribute end marker");
const attributeCoverage = attributeIssue === null ? "complete" : "incomplete";
return {
fileNameCount,
attributeIssue,
fileNameCoverage:
complete && attributeIssue === null && !hasList
? "complete"
: "incomplete",
attributeCoverage:
complete && attributeIssue === null ? "complete" : "incomplete",
fileNameCoverage: hasList ? "incomplete" : attributeCoverage,
attributeCoverage,
};
};