mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
✨ Add missing type hints on backend code
This commit is contained in:
parent
d094eb3595
commit
68d2afc75d
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@
|
||||||
|
|
||||||
(defmethod run-collector! :counter
|
(defmethod run-collector! :counter
|
||||||
[{:keys [::mdef/instance]} {:keys [inc labels] :or {inc 1 labels default-empty-labels}}]
|
[{:keys [::mdef/instance]} {:keys [inc labels] :or {inc 1 labels default-empty-labels}}]
|
||||||
(let [instance (.labels instance (if (is-array? labels) labels (into-array String labels)))]
|
(let [instance (.labels ^Counter instance (if (is-array? labels) labels (into-array String labels)))]
|
||||||
(.inc ^Counter$Child instance (double inc))))
|
(.inc ^Counter$Child instance (double inc))))
|
||||||
|
|
||||||
(defmethod run-collector! :gauge
|
(defmethod run-collector! :gauge
|
||||||
|
|
|
@ -294,7 +294,7 @@
|
||||||
|
|
||||||
(defn- retrieve-file
|
(defn- retrieve-file
|
||||||
[pool file-id]
|
[pool file-id]
|
||||||
(with-open [conn (db/open pool)]
|
(with-open [^AutoCloseable conn (db/open pool)]
|
||||||
(binding [pmap/*load-fn* (partial files/load-pointer conn file-id)]
|
(binding [pmap/*load-fn* (partial files/load-pointer conn file-id)]
|
||||||
(some-> (db/get* conn :file {:id file-id})
|
(some-> (db/get* conn :file {:id file-id})
|
||||||
(files/decode-row)
|
(files/decode-row)
|
||||||
|
|
Loading…
Add table
Reference in a new issue