From 40c1e88904d8674d597634ec2db90d51b46795ec Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Sat, 26 Mar 2022 10:25:47 +0100 Subject: [PATCH] chore: fix lint errors from latest ci run --- lua/telescope/builtin/lsp.lua | 2 +- lua/telescope/pickers.lua | 2 +- 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)