mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 18:05:38 +08:00
refactor(ntfs): derive attribute coverage from the recorded issue (#16983)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user