From be3794da7602a78aec527750986c05d5bc8bd930 Mon Sep 17 00:00:00 2001 From: moxie Date: Sun, 15 Mar 2026 12:54:46 +0200 Subject: refactor(links): simplify get_wiki_root function name --- lua/muwiki/links.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/muwiki/links.lua b/lua/muwiki/links.lua index 90b9349..599ddb8 100644 --- a/lua/muwiki/links.lua +++ b/lua/muwiki/links.lua @@ -57,7 +57,7 @@ function M.get_link() } end -local function get_wiki_root_or_notify() +local function get_wiki_root() local wiki_root = utils.wiki_root(0) if not wiki_root then vim.notify('Not in a wiki buffer', vim.log.levels.ERROR) @@ -78,7 +78,7 @@ function M.open_link() return end - local wiki_root = get_wiki_root_or_notify() + local wiki_root = get_wiki_root() if not wiki_root then return end @@ -137,7 +137,7 @@ function M.open_with_menu(handlers, link) if vim.startswith(url, 'file://') then url = utils.resolve(url, nil) else - local wiki_root = get_wiki_root_or_notify() + local wiki_root = get_wiki_root() if wiki_root then url = utils.resolve(url, wiki_root) end -- cgit v1.2.3