mirror of
https://github.com/penpot/penpot.git
synced 2025-02-18 21:06:11 -05:00
📎 Fix linter issues
This commit is contained in:
parent
b183dc3e62
commit
340ee859f9
2 changed files with 3 additions and 5 deletions
|
@ -28,8 +28,7 @@
|
||||||
|
|
||||||
(defmethod ig/init-key ::handler
|
(defmethod ig/init-key ::handler
|
||||||
[_ {:keys [executor] :as cfg}]
|
[_ {:keys [executor] :as cfg}]
|
||||||
(let [ftoken (cf/get :feedback-token ::no-token)
|
(let [enabled? (contains? cf/flags :user-feedback)]
|
||||||
enabled? (contains? cf/flags :user-feedback)]
|
|
||||||
(if enabled?
|
(if enabled?
|
||||||
(fn [request respond raise]
|
(fn [request respond raise]
|
||||||
(-> (px/submit! executor #(handler cfg request))
|
(-> (px/submit! executor #(handler cfg request))
|
||||||
|
|
|
@ -22,10 +22,9 @@
|
||||||
[clojure.core.async :as a]
|
[clojure.core.async :as a]
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[promesa.core :as p]
|
|
||||||
[promesa.exec :as px]
|
|
||||||
[integrant.core :as ig]
|
[integrant.core :as ig]
|
||||||
[lambdaisland.uri :as u]
|
[lambdaisland.uri :as u]
|
||||||
|
[promesa.core :as p]
|
||||||
[promesa.exec :as px]))
|
[promesa.exec :as px]))
|
||||||
|
|
||||||
(defn parse-client-ip
|
(defn parse-client-ip
|
||||||
|
@ -110,7 +109,7 @@
|
||||||
(l/error ::l/raw (str "spec validation on persist-events:\n" (us/pretty-explain xdata)))
|
(l/error ::l/raw (str "spec validation on persist-events:\n" (us/pretty-explain xdata)))
|
||||||
(l/error :hint "error on persist-events" :cause cause))))]
|
(l/error :hint "error on persist-events" :cause cause))))]
|
||||||
|
|
||||||
(fn [request respond raise]
|
(fn [request respond _]
|
||||||
;; Fire and forget, log error in case of errro
|
;; Fire and forget, log error in case of errro
|
||||||
(-> (px/submit! executor #(handler request))
|
(-> (px/submit! executor #(handler request))
|
||||||
(p/catch handle-error))
|
(p/catch handle-error))
|
||||||
|
|
Loading…
Add table
Reference in a new issue