Add maybe.el dependency to fn in prelude.el

Not adding it as a top-level dependency since maybe.el depends on on
prelude.el. This shouldn't be a circular dependency when the requirement happens
in the function's scope though.
This commit is contained in:
William Carroll 2020-01-27 14:52:04 +00:00
parent 22968046b7
commit 5399b4bd03

View file

@ -136,6 +136,7 @@ This is a wrapper around `start-process' that has an API that resembles
(defun prelude/executable-exists? (name)
"Return t if CLI tool NAME exists according to `exec-path'."
(let ((file (locate-file name exec-path)))
(require 'maybe)
(if (maybe/some? file)
(f-exists? file)
nil)))