Skip to content

Commit

Permalink
Lint di.core/with-open as clojure.core/with-open (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
krevedkokun authored Nov 2, 2024
1 parent ed88345 commit 75142df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/darkleaf/di/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@
Evaluates body in a try expression with names bound to the values
of the inits, and a finally clause that calls (.close name) on each
name in reverse order."
{:clj-kondo/lint-as 'clojure.core/with-open}
[bindings & body]
{:pre [(vector? bindings)
(even? (count bindings))]}
Expand Down

0 comments on commit 75142df

Please sign in to comment.