import-js: replace `if` w/ `when`
This commit is contained in:
parent
4636672203
commit
35cf3df3dc
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue