Skip to content

Commit 03dd8d1

Browse files
committed
[bugfix] Fix compilation warning
Closes #99
1 parent eb3c137 commit 03dd8d1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

rjsx-mode.el

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -988,17 +988,14 @@ NEW-NAME is the name to give the tag."
988988

989989

990990
(defun rjsx-jump-opening-tag ()
991-
"Goto opening tag of focused tab body"
991+
"Go to opening tag of tag at point."
992992
(interactive)
993-
(let* ((tag (rjsx--tag-at-point))
994-
(closer (and tag (rjsx-node-closing-tag tag))))
995-
(cond
996-
((null tag) (message "No JSX tag found at point"))
997-
(t
998-
(goto-char (+ 1 (js2-node-abs-pos tag)))))))
993+
(let ((tag (rjsx--tag-at-point)))
994+
(if (null tag) (message "No JSX tag found at point")
995+
(goto-char (+ 1 (js2-node-abs-pos tag))))))
999996

1000997
(defun rjsx-jump-tag ()
1001-
"Switch between opening and closing tag of focused tab body"
998+
"Switch between opening and closing tag of tag at point."
1002999
(interactive)
10031000
(let* ((tag (rjsx--tag-at-point))
10041001
(closer (and tag (rjsx-node-closing-tag tag))))

0 commit comments

Comments
 (0)