import-js: replace `if` w/ `when`

This commit is contained in:
Lucius Hu 2022-07-13 18:04:04 -04:00
parent 4636672203
commit 35cf3df3dc
No known key found for this signature in database
GPG Key ID: 7E474E82E29B5A7A
1 changed files with 4 additions and 4 deletions

View File

@ -24,11 +24,11 @@
(defun spacemacs/import-js-fix ()
(interactive)
(import-js-fix)
(if (bound-and-true-p flycheck-mode)
(flycheck-buffer)))
(when (bound-and-true-p flycheck-mode)
(flycheck-buffer)))
(defun spacemacs/import-js-import ()
(interactive)
(import-js-import)
(if (bound-and-true-p flycheck-mode)
(flycheck-buffer)))
(when (bound-and-true-p flycheck-mode)
(flycheck-buffer)))