-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graciously handle empty paths to by-path #555
Comments
A possible try-catch like this: |
Any feedback/ constructive-criticism would be great! |
I don't see your try catch but it is probably better to avoid passing nil on there instead of let it throw and then catch the exception. I would not call |
So @hit023 have you added a fix for this that you're planning to pull request, or should I see if I can give it a shot? |
@DonyorM , you can go ahead with it. |
This modifies the file-filter function so that if the criteria seq is empty, it simply returns an empty list.
This modifies the file-filter function so that if the criteria seq is empty, it simply returns nil.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
This modifies the file-filter function so that if the criteria seq is empty, it throws an error.
Fixed in cb923ee |
Hi folks!
When the
paths
param to by-path is an emptyseq
, this is the 💥 I receive :Potentially this involves also the other
by-*
andnot-by-*
functions. It basically happens becausejuxt
does not like to be called in an "empty" apply this.Should be an easy fix in
file-filter
🕺The text was updated successfully, but these errors were encountered: