Skip to content

Commit e32ef8e

Browse files
committed
Use when not if-nil
fix #20 This code is just wrong. I accidentally merged it.
1 parent ed9f204 commit e32ef8e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

phpstan.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ NIL
181181
(expand-file-name (cdr phpstan-config-file) (php-project-get-root-dir))
182182
phpstan-config-file)
183183
(let ((working-directory (phpstan-get-working-dir)))
184-
(if working-directory
185-
nil
184+
(when working-directory
186185
(cl-loop for name in '("phpstan.neon" "phpstan.neon.dist")
187186
for dir = (locate-dominating-file working-directory name)
188187
if dir

0 commit comments

Comments
 (0)