Skip to content

Commit

Permalink
Fix a linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Oct 7, 2024
1 parent 94a82c9 commit 2edcd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/daisyproducer2/documents/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
[[tempfile opts] & body]
`(let [~tempfile (fs/create-temp-file ~opts)]
(try
~@body
(do ~@body)
(finally
(fs/delete ~tempfile)))))

(defmacro with-tempdir
[[tempdir opts] & body]
`(let [~tempdir (fs/create-temp-dir ~opts)]
(try
~@body
(do ~@body)
(finally
(fs/delete-tree ~tempdir)))))

0 comments on commit 2edcd3c

Please sign in to comment.