Skip to content

Commit 676792a

Browse files
committed
chore: Use cl-case to check error/warning flags
1 parent e554b5d commit 676792a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lisp/core/analyze.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ information."
9393
9494
Argument LEVEL and MSG are data from the debug log signal."
9595
(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))
96+
(cl-case level
97+
(`error (setq eask-analyze--error-p t))
98+
(`warn (setq eask-analyze--warning-p t)))
10099
(with-current-buffer (or (eask-analyze--load-buffer) (buffer-name))
101100
(funcall
102101
(cond ((eask-json-p) #'eask-analyze--write-json-format)

0 commit comments

Comments
 (0)