mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
refactor: remove redundant seams and preserve cleanup ownership (#10375)
* refactor: remove redundant seams and preserve cleanup ownership * fix: validate PE resource extents before budget checks
This commit is contained in:
1 parent
4b26f38d6f
commit
cdc4541ef7
369 files changed
+3847
-3662
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { existsSync, statSync } from "node:fs";
|
||||
import { statSync } from "node:fs";
|
||||
import { win32 } from "node:path";
|
||||
import { windowsPathEntries } from "../process/WindowsExecutable.js";
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface WindowsExecutableLookup {
|
||||
|
||||
const isRegularFile = (path: string): boolean => {
|
||||
try {
|
||||
return existsSync(path) && statSync(path).isFile();
|
||||
return statSync(path).isFile();
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user