Skip to content

Commit

Permalink
fix: removing warning about file_uri variable not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
HicaroD committed Oct 26, 2023
1 parent 4af2e29 commit 30eaa3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/telescope/builtin/__lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,8 @@ local function list_or_jump(action, title, opts)
elseif opts.jump_type == "vsplit" then
vim.cmd "vnew"
elseif opts.jump_type == "tab drop" then
local file_uri = ""
if flattened_results[1].uri ~= nil then
file_uri = flattened_results[1].uri
else
local file_uri = flattened_results[1].uri
if file_uri == nil then
file_uri = flattened_results[1].targetUri
end
local file_path = vim.uri_to_fname(file_uri)
Expand Down

0 comments on commit 30eaa3f

Please sign in to comment.