From 4fe767c169d43b1391f4d40d36e547dd6e1cf8c0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 11 Oct 2022 15:22:04 +0200 Subject: [PATCH] :zap: Add missing type hints on binfile ns --- backend/src/app/rpc/commands/binfile.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/app/rpc/commands/binfile.clj b/backend/src/app/rpc/commands/binfile.clj index 9c01debe0..d4275b281 100644 --- a/backend/src/app/rpc/commands/binfile.clj +++ b/backend/src/app/rpc/commands/binfile.clj @@ -808,7 +808,7 @@ cs (volatile! nil)] (try (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)] (write-export! (assoc cfg ::output output)))) @@ -831,7 +831,7 @@ (defn export-to-tmpfile! [cfg] (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) path))) @@ -843,7 +843,7 @@ (try (l/info :hint "start importation" :import-id id) (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)))) (catch Throwable cause