empty collections aren't falsey in Clojure. The `if-let` isn't doing anything different than a regular `let` would I believe.
@fredoverflow Жыл бұрын
Thank you for the bug report! I fixed it by wrapping the for in a seq: (if-let [filtered (seq (for ... Let me know if there's a better solution!
@fredoverflow Жыл бұрын
On second thought: The sequence cannot possibly be empty, because when filter-stack-trace is called from the try/catch inside register-test, multiple clopad.txt elements are definitely on the stack. If an IDE bug further down the call stack had prevented the tests from running, filter-stack-trace would never have been called in the first place!
@klokbaske Жыл бұрын
Could it be problematic to mutate the throwable, instead of creating a new one? Or maybe just add a ! to the function name?