Skip to content

Commit 1404c0f

Browse files
committed
refactor: unused require and double negation
1 parent cc9b8c3 commit 1404c0f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lua/copilot/api/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local logger = require("copilot.logger")
2-
local utils = require("copilot.client.utils")
2+
33
---@class CopilotApi
44
local M = {
55
---@deprecated

lua/copilot/suggestion/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ local hl_group = require("copilot.highlight").group
66
local util = require("copilot.util")
77
local logger = require("copilot.logger")
88
local suggestion_util = require("copilot.suggestion.utils")
9-
local utils = require("copilot.client.utils")
109
local keymaps = require("copilot.keymaps")
1110

1211
local M = {}
@@ -729,7 +728,7 @@ function M.dismiss()
729728
end
730729

731730
function M.is_visible()
732-
return not not vim.api.nvim_buf_get_extmark_by_id(0, copilot.ns_id, copilot.extmark_id, { details = false })[1]
731+
return vim.api.nvim_buf_get_extmark_by_id(0, copilot.ns_id, copilot.extmark_id, { details = false })[1]
733732
end
734733

735734
-- toggles auto trigger for the current buffer

0 commit comments

Comments
 (0)