Skip to content

Commit

Permalink
fix: do not stack warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Mar 5, 2022
1 parent d02bbc0 commit 3944f8d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/telescope/_extensions/bookmarks/firefox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ local function get_profile_dir(state)
end
end
end

if profile_dir == nil then
utils.warn(
"Unable to deduce the default firefox profile name. "
.. "Please provide one with `firefox_profile_name` option."
)
end

return profile_dir
end

Expand All @@ -65,7 +73,6 @@ end
function firefox.collect_bookmarks(state)
local profile_dir = get_profile_dir(state)
if profile_dir == nil then
utils.warn "Unable to deduce the default firefox profile name. Please provide one with `firefox_profile_name` option."
return nil
end

Expand Down

0 comments on commit 3944f8d

Please sign in to comment.