-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,9 @@ | |
absolute file, using the base to to form the absolute file if needed." | ||
[base-path path] | ||
(let [file (io/file path)] | ||
(cond->> file (not (.isAbsolute file)) (io/file base-path)))) | ||
(if (not (.isAbsolute file)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
RickMoynihan
Author
Owner
|
||
(io/file base-path file) | ||
file))) | ||
|
||
(defn absolute-path | ||
"Takes an absolute base path and a potentially relative file and returns an | ||
|
Hi!
Thanks for this library!
If readability is the concern, is there a reason you didn't use
if-not
?(Or even switching the branches, which would make the
not
unnecessary.)I assume you have broader concerns that I can't pinpoint with my limited experience!