Skip to content

Commit 61926f1

Browse files
committed
refactor: remove async
1 parent b04ddf3 commit 61926f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilityObsidian.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ export async function openFile(
166166
/**
167167
* If there is no existing tab which opened the file, return false, else return true.
168168
*/
169-
export async function openExistingFileTab(
169+
export function openExistingFileTab(
170170
app: App,
171171
file: TFile,
172-
): Promise<boolean> {
172+
): boolean {
173173
let leaf: WorkspaceLeaf | undefined = undefined;
174174

175175
app.workspace.iterateRootLeaves((m_leaf: WorkspaceLeaf) => {

0 commit comments

Comments
 (0)