mirror of
https://github.com/4source/open-editors-obsidian-plugin.git
synced 2026-07-22 11:40:26 +00:00
Remove "debug" from allowed console methods in ESLint configuration
This commit is contained in:
parent
f965aa80c2
commit
005663f01a
2 changed files with 3 additions and 4 deletions
|
|
@ -9,13 +9,12 @@
|
|||
"allow": [
|
||||
"warn",
|
||||
"error",
|
||||
"debug"
|
||||
]
|
||||
}
|
||||
],
|
||||
"multiline-comment-style": [
|
||||
"error",
|
||||
"starred-block"
|
||||
"starred-block",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -178,12 +178,12 @@ export class OpenEditorsView extends View {
|
|||
callback: tree => {
|
||||
const leaf = this.app.workspace.getLeafById(tree.id);
|
||||
if (!leaf) {
|
||||
console.debug('Leaf not found with the id ', tree.id);
|
||||
console.warn('Leaf not found with the id ', tree.id);
|
||||
return;
|
||||
}
|
||||
const parent = leaf?.parent;
|
||||
if (!parent) {
|
||||
console.debug('Parent of leaf not found!');
|
||||
console.warn('Parent of leaf not found!');
|
||||
return;
|
||||
}
|
||||
leafParent = parent;
|
||||
|
|
|
|||
Loading…
Reference in a new issue