Skip to content

Commit d6a9e60

Browse files
committed
Fix trivial issues
- Don't use a free variable - Fix docstring position
1 parent 398fcd7 commit d6a9e60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jest.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ With a prefix ARG, allow editing."
282282

283283
(cl-defun jest--run (&key args file testname edit)
284284
"Run jest for the given arguments."
285-
(let ((popup-arguments args))
285+
(let ((popup-arguments args)
286+
command)
286287
(setq args (jest--transform-arguments args))
287288
(when (and file (file-name-absolute-p file))
288289
(setq file (jest--relative-file-name file)))
@@ -444,8 +445,8 @@ If FILE is not found in DIRECTORY, the parent of DIRECTORY will be searched."
444445
(gethash "name" (jest--read-package-json buffer-file-name)))
445446

446447
(defun jest--project-root ()
447-
(interactive)
448448
"Find the project root directory."
449+
(interactive)
449450
(file-name-directory (jest--find-package-json buffer-file-name)))
450451

451452
(defun jest--relative-file-name (file)

0 commit comments

Comments
 (0)