We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 591d099 commit b47fe7aCopy full SHA for b47fe7a
1 file changed
extensions/memory-wiki/src/ingest.ts
@@ -42,8 +42,8 @@ function assertUtf8Text(buffer: Buffer, sourcePath: string): string {
42
43
function isEmptyExistingSourcePage(error: unknown): boolean {
44
return (
45
- !!error &&
46
typeof error === "object" &&
+ error !== null &&
47
((error as NodeJS.ErrnoException).code === "ENOENT" ||
48
(error as NodeJS.ErrnoException).code === "EISDIR")
49
);
0 commit comments