mirror of
https://github.com/antokeinanen/obsidian-advanced-merger.git
synced 2026-07-22 07:40:24 +00:00
remove redundant file check
This commit is contained in:
parent
f6d89ffd01
commit
4ffe7f32f1
1 changed files with 1 additions and 4 deletions
5
main.ts
5
main.ts
|
|
@ -4,10 +4,7 @@ export default class AdvancedMerge extends Plugin {
|
|||
onload() {
|
||||
this.registerEvent(
|
||||
this.app.workspace.on("file-menu", (menu, file) => {
|
||||
const folderOrFile = this.app.vault.getAbstractFileByPath(
|
||||
file.path
|
||||
);
|
||||
if (folderOrFile instanceof TFolder) {
|
||||
if (file instanceof TFolder) {
|
||||
const folder = file;
|
||||
menu.addItem((item) => {
|
||||
item.setTitle("Merge folder")
|
||||
|
|
|
|||
Loading…
Reference in a new issue