File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1529,15 +1529,13 @@ WORKSPACE is the workspace that contains the progress token."
1529
1529
(lsp-workspace-set-work-done-token token reporter workspace)))
1530
1530
1531
1531
("report"
1532
- (let ((reporter (lsp-workspace-get-work-done-token token workspace)))
1533
- (when reporter
1534
- (progress-reporter-update reporter (gethash " percentage" value nil )))))
1532
+ (when-let ((reporter (lsp-workspace-get-work-done-token token workspace)))
1533
+ (progress-reporter-update reporter (gethash "percentage" value nil))))
1535
1534
1536
1535
("end"
1537
- (let ((reporter (lsp-workspace-get-work-done-token token workspace)))
1538
- (when reporter
1539
- (progn (progress-reporter-done reporter)
1540
- (lsp-workspace-rem-work-done-token token workspace))))))))
1536
+ (when-let ((reporter (lsp-workspace-get-work-done-token token workspace)))
1537
+ (progress-reporter-done reporter)
1538
+ (lsp-workspace-rem-work-done-token token workspace))))))
1541
1539
1542
1540
(defun lsp-diagnostics (&optional current-workspace?)
1543
1541
"Return the diagnostics from all workspaces."
You can’t perform that action at this time.
0 commit comments