mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
⚡ Add missing type hints on binfile ns
This commit is contained in:
parent
e50137d186
commit
4fe767c169
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue