react: minor change
This amended commit 58243c67f8
There is an unnecessary `when-let*` form, and it's replaced by `when`.
This commit is contained in:
parent
5e641394f4
commit
9115fd9824
|
@ -62,7 +62,7 @@
|
|||
;; Others
|
||||
(defun spacemacs//javascript-jsx-file-p ()
|
||||
"Enable rjsx mode by using magic-mode-alist."
|
||||
(when-let* ((buffer-file-name))
|
||||
(when buffer-file-name
|
||||
(and (memq (file-name-extension buffer-file-name) '("js" "jsx"))
|
||||
(re-search-forward "\\(^\\s-*import React\\|\\( from \\|require(\\)[\"']react\\)"
|
||||
magic-mode-regexp-match-limit t)
|
||||
|
|
Loading…
Reference in New Issue