Skip to content

Commit

Permalink
react: minor change
Browse files Browse the repository at this point in the history
This amended commit 58243c6

There is an unnecessary `when-let*` form, and it's replaced by `when`.
  • Loading branch information
lebensterben authored and duianto committed Apr 4, 2021
1 parent 5e64139 commit 9115fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/+frameworks/react/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9115fd9

Please sign in to comment.