Skip to content

Commit

Permalink
Remove unneeded local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Feb 25, 2022
1 parent 9b2bd87 commit 2ffb2f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions elisp-check.el
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ If PREFIX is not given, extract it from the current file name.
When a buffer is a member of KNOWN-BUFFERS, do not return or
search it for further `require' statements."
(let* ((file (file-name-nondirectory (buffer-file-name)))
(file-prefix (file-name-sans-extension file))
(prefix (or prefix file-prefix))
(prefix (or prefix (file-name-sans-extension file)))
(requires (elisp-check-parse "^[ ]*(require '\\(.*?\\))"))
(fun (lambda (req)
(elisp-check--get-require
Expand Down

0 comments on commit 2ffb2f5

Please sign in to comment.