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 e554b5d commit 676792aCopy full SHA for 676792a
lisp/core/analyze.el
@@ -93,10 +93,9 @@ information."
93
94
Argument LEVEL and MSG are data from the debug log signal."
95
(unless (string= " *temp*" (buffer-name)) ; avoid error from `package-file' directive
96
- (when (eq 'error level)
97
- (setq eask-analyze--error-p t))
98
- (when (eq 'warn level)
99
- (setq eask-analyze--warning-p t))
+ (cl-case level
+ (`error (setq eask-analyze--error-p t))
+ (`warn (setq eask-analyze--warning-p t)))
100
(with-current-buffer (or (eask-analyze--load-buffer) (buffer-name))
101
(funcall
102
(cond ((eask-json-p) #'eask-analyze--write-json-format)
0 commit comments