0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix linting issue

This commit is contained in:
alonso.torres 2022-05-25 11:29:49 +02:00
parent 0f2b2d4590
commit 18849307e9

View file

@ -102,8 +102,7 @@
(let [fname (str "imported-file-" (dt/now))
file-id (try
(uuid/uuid (-> params :file :filename))
(catch Exception err
(uuid/next)))
(catch Exception _ (uuid/next)))
file (db/exec-one! pool (sql/select :file {:id file-id}))]
(if file
(db/update! pool :file