summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2022-03-26 10:25:47 +0100
committerSimon Hauser <Simon-Hauser@outlook.de>2022-03-26 10:25:47 +0100
commit40c1e88904d8674d597634ec2db90d51b46795ec (patch)
tree3d72217cafea1cb85dfeaab804a15787f798bcff
parent503db70a6a82ff4847593e5830c05082db39faa0 (diff)
chore: fix lint errors from latest ci run
-rw-r--r--lua/telescope/builtin/lsp.lua2
-rw-r--r--lua/telescope/pickers.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/builtin/lsp.lua b/lua/telescope/builtin/lsp.lua
index aaa5e6f..a2dc65d 100644
--- a/lua/telescope/builtin/lsp.lua
+++ b/lua/telescope/builtin/lsp.lua
@@ -281,7 +281,7 @@ lsp.code_actions = function(opts)
-- Fixed Java/jdtls compatibility with Telescope
-- See fix_zero_version commentary for more information
local command = (action.command and action.command.command) or action.command
- if not (command == "java.apply.workspaceEdit") then
+ if command ~= "java.apply.workspaceEdit" then
return action
end
local arguments = (action.command and action.command.arguments) or action.arguments
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index a290bb0..5a82e16 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -461,7 +461,7 @@ function Picker:find()
local prompt = self:_get_next_filtered_prompt()
-- TODO: Entry manager should have a "bulk" setter. This can prevent a lot of redraws from display
- if self.cache_picker == false or not (self.cache_picker.is_cached == true) then
+ if self.cache_picker == false or self.cache_picker.is_cached ~= true then
self.sorter:_start(prompt)
self.manager = EntryManager:new(self.max_results, self.entry_adder, self.stats)