Skip to content

Commit

Permalink
Update idris2-commands.el
Browse files Browse the repository at this point in the history
Co-authored-by: Kamiλ Shakirov <[email protected]>
  • Loading branch information
redfish64 and ska80 authored Nov 28, 2022
1 parent b771f9a commit dd69780
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions idris2-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,10 @@ compiler-annotated output. Does not return a line number."
(poss-full-filenames (mapcar #'(lambda (d) (concat (file-name-as-directory d) file-based-on-name)) file-dirs))
(act-full-filenames (seq-filter #'file-exists-p poss-full-filenames))
)
(if (null act-full-filenames) nil
(progn
(if (not (null (cdr act-full-filenames)))
(message "Multiple locations found for file '%s': %s" file act-full-filenames) ())
(car act-full-filenames)))
)
(unless (null act-full-filenames)
(unless (null (cdr act-full-filenames))
(message "Multiple locations found for file '%s': %s" file act-full-filenames))
(car act-full-filenames))
)
)

Expand Down

0 comments on commit dd69780

Please sign in to comment.