Skip to content

Commit

Permalink
fix: nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Oct 21, 2023
1 parent 30e8dfc commit a55bbd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/ferris/overrides.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
local M = {}

function M.snippet_text_edits_to_text_edits(spe)
if type(spe) ~= 'table' then
return
end
for _, value in ipairs(spe) do
if value.newText and value.insertTextFormat then
-- $0 -> Nothing
Expand Down

0 comments on commit a55bbd0

Please sign in to comment.