Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

refactor(reference): simplify malformed UTF-8 handling

morluto377df715ea5b
diff --git a/src/domain/referenceSourceImportParsing.ts b/src/domain/referenceSourceImportParsing.ts
index 7f9ad996a..1abfc6a51 100644
--- a/src/domain/referenceSourceImportParsing.ts
+++ b/src/domain/referenceSourceImportParsing.ts
@@ -334,10 +334,7 @@ export const parseReferenceSourceImports = (
let source: string;
try {
source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
- } catch (cause: unknown) {
- // The import still records the original bytes; lossy text cannot supply
- // observed module names or relationships.
- void cause;
+ } catch {
return {
relationships: [],
parse_failures: [