Skip to content

Commit

Permalink
fix: no need to detected_urls_set many times
Browse files Browse the repository at this point in the history
  • Loading branch information
phanen committed Aug 5, 2024
1 parent d921f21 commit c0e012f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gx/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function M.get_url(mode, line, configured_handlers, handler_options)
then
if detected_urls_set[url] == nil then
detected_urls[#detected_urls + 1] = { ["name"] = handler.name, ["url"] = url }
detected_urls_set[url] = true
end
detected_urls_set[url] = true
end
end

Expand Down

0 comments on commit c0e012f

Please sign in to comment.