Skip to content

Commit f7cc002

Browse files
committed
lsp-lens.el: fix byte-compile warnings
1 parent 1eb9c53 commit f7cc002

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

lsp-lens.el

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,11 @@ BUFFER-MODIFIED? determines whether the buffer is modified or not."
145145

146146
(defun lsp-lens--create-interactive-command (command?)
147147
"Create an interactive COMMAND? for the lens."
148-
(let ((server-id (->> (lsp-workspaces)
149-
(cl-first)
150-
(or lsp--cur-workspace)
151-
(lsp--workspace-client)
152-
(lsp--client-server-id))))
153-
(if (functionp (lsp:command-command command?))
154-
(lsp:command-command command?)
155-
(lambda ()
156-
(interactive)
157-
(lsp--execute-command command?)))))
148+
(if (functionp (lsp:command-command command?))
149+
(lsp:command-command command?)
150+
(lambda ()
151+
(interactive)
152+
(lsp--execute-command command?))))
158153

159154
(defun lsp-lens--display (lenses)
160155
"Show LENSES."

0 commit comments

Comments
 (0)