0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Add missing type hints on binfile ns

This commit is contained in:
Andrey Antukh 2022-10-11 15:22:04 +02:00 committed by Andrés Moya
parent e50137d186
commit 4fe767c169

View file

@ -808,7 +808,7 @@
cs (volatile! nil)] cs (volatile! nil)]
(try (try
(l/info :hint "start exportation" :export-id id) (l/info :hint "start exportation" :export-id id)
(with-open [output (io/output-stream output)] (with-open [^AutoCloseable output (io/output-stream output)]
(binding [*position* (atom 0)] (binding [*position* (atom 0)]
(write-export! (assoc cfg ::output output)))) (write-export! (assoc cfg ::output output))))
@ -831,7 +831,7 @@
(defn export-to-tmpfile! (defn export-to-tmpfile!
[cfg] [cfg]
(let [path (tmp/tempfile :prefix "penpot.export.")] (let [path (tmp/tempfile :prefix "penpot.export.")]
(with-open [output (io/output-stream path)] (with-open [^AutoCloseable output (io/output-stream path)]
(export! cfg output) (export! cfg output)
path))) path)))
@ -843,7 +843,7 @@
(try (try
(l/info :hint "start importation" :import-id id) (l/info :hint "start importation" :import-id id)
(binding [*position* (atom 0)] (binding [*position* (atom 0)]
(with-open [input (io/input-stream input)] (with-open [^AutoCloseable input (io/input-stream input)]
(read-import! (assoc cfg ::input input)))) (read-import! (assoc cfg ::input input))))
(catch Throwable cause (catch Throwable cause