mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
Small fix
This commit is contained in:
parent
4312521ef3
commit
20a829f75e
1 changed files with 2 additions and 2 deletions
|
|
@ -16,8 +16,8 @@ function setPluginId(name: string) {
|
|||
pluginId = name;
|
||||
}
|
||||
|
||||
function isNodeJsError(error: any): error is NodeJS.ErrnoException {
|
||||
return error && typeof error.code === 'string';
|
||||
function isNodeJsError(error: unknown): error is NodeJS.ErrnoException {
|
||||
return error instanceof Error && 'code' in error;
|
||||
}
|
||||
|
||||
async function getDbFilePath(vault: Vault): Promise < string|null > {
|
||||
|
|
|
|||
Loading…
Reference in a new issue