Skip to content

Commit 834f4bf

Browse files
committed
Use bound-and-true-p
1 parent 8d43a49 commit 834f4bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flycheck-phpstan.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
(let ((enabled (phpstan-enabled)))
5050
(prog1 enabled
5151
(when (and phpstan-flycheck-auto-set-executable
52-
(not (and (boundp 'flycheck-phpstan-executable)
53-
(symbol-value 'flycheck-phpstan-executable)))
52+
(null (bound-and-true-p flycheck-phpstan-executable))
5453
(or (stringp phpstan-executable)
5554
(eq 'docker phpstan-executable)
5655
(and (eq 'root (car-safe phpstan-executable))

0 commit comments

Comments
 (0)