We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669c7c4 commit 888dc9cCopy full SHA for 888dc9c
lsp-metals-treeview.el
@@ -170,9 +170,8 @@ the WORKSPACE."
170
(defun lsp--metals-treeview-add-buffer (workspace buffer)
171
"Add the BUFFER to the list of treeview buffers associated with
172
the WORKSPACE."
173
- (-when-let* ((state (lsp--metals-treeview-get-data workspace))
174
- (buffers (push buffer (lsp--metals-treeview-data-buffers state))))
175
- (setf (lsp--metals-treeview-data-buffers state) buffers)))
+ (-when-let (state (lsp--metals-treeview-get-data workspace))
+ (push buffer (lsp--metals-treeview-data-buffers state))))
176
177
(defun lsp--metals-treeview-remove-buffers (workspace)
178
"Clear the buffers stored within treeview state data in
0 commit comments