mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 07:16:07 -05:00
✨ Fix linter issues
This commit is contained in:
parent
898e66fd18
commit
36518e0e6e
2 changed files with 2 additions and 2 deletions
|
@ -530,7 +530,7 @@
|
||||||
|
|
||||||
(defn- match-storage-entry-fn
|
(defn- match-storage-entry-fn
|
||||||
[]
|
[]
|
||||||
(let [pattern (str "^objects/([^/]+).json$")
|
(let [pattern "^objects/([^/]+).json$"
|
||||||
pattern (re-pattern pattern)]
|
pattern (re-pattern pattern)]
|
||||||
(fn [entry]
|
(fn [entry]
|
||||||
(when-let [[_ id] (re-matches pattern (zip-entry-name entry))]
|
(when-let [[_ id] (re-matches pattern (zip-entry-name entry))]
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
(let [conn (db/get-connection h/*system*)
|
(let [conn (db/get-connection h/*system*)
|
||||||
used (cfh/collect-used-media data)
|
used (cfh/collect-used-media data)
|
||||||
ids (db/create-array conn "uuid" used)
|
ids (db/create-array conn "uuid" used)
|
||||||
sql (str "SELECT * FROM file_media_object WHERE id = ANY(?)")
|
sql "SELECT * FROM file_media_object WHERE id = ANY(?)"
|
||||||
rows (db/exec! conn [sql ids])
|
rows (db/exec! conn [sql ids])
|
||||||
index (reduce (fn [index media]
|
index (reduce (fn [index media]
|
||||||
(if (not= (:file-id media) id)
|
(if (not= (:file-id media) id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue