Skip to content

Commit

Permalink
chore: apply formatting (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill authored and amirbilu committed Mar 24, 2024
1 parent 36e58a6 commit 8a8e992
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lua/tabnine/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ local function valid_response(response)
end

function M.accept()
if not state.completions_cache or not state.rendered_completion then
return
end
if not state.completions_cache or not state.rendered_completion then return end

M.clear()
local lines = utils.str_to_lines(state.rendered_completion)
Expand All @@ -34,13 +32,9 @@ function M.accept()
end

function M.clear()
if not state.completions_cache or not state.rendered_completion then
return
end
if not state.completions_cache or not state.rendered_completion then return end

if state.cancel_completion then
state.cancel_completion()
end
if state.cancel_completion then state.cancel_completion() end
state.debounce_timer:stop()

api.nvim_buf_clear_namespace(0, consts.tabnine_namespace, 0, -1)
Expand Down

0 comments on commit 8a8e992

Please sign in to comment.