Skip to content

Commit

Permalink
Fix reflection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Apr 12, 2024
1 parent c847aca commit 45f3282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/babashka/fs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,9 @@
_ (create-dirs dest)
cp-opts (->copy-opts replace-existing nil nil nil)]
(with-open
[fis (if (instance? InputStream zip-file) zip-file
(Files/newInputStream (as-path zip-file) (into-array java.nio.file.OpenOption [])))
[^InputStream fis
(if (instance? InputStream zip-file) zip-file
(Files/newInputStream (as-path zip-file) (into-array java.nio.file.OpenOption [])))
zis (ZipInputStream. fis)]
(loop []
(let [entry (.getNextEntry zis)]
Expand Down

0 comments on commit 45f3282

Please sign in to comment.