mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -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
|
||||
[_ {:keys [executor] :as cfg}]
|
||||
(let [ftoken (cf/get :feedback-token ::no-token)
|
||||
enabled? (contains? cf/flags :user-feedback)]
|
||||
(let [enabled? (contains? cf/flags :user-feedback)]
|
||||
(if enabled?
|
||||
(fn [request respond raise]
|
||||
(-> (px/submit! executor #(handler cfg request))
|
||||
|
|
|
@ -22,10 +22,9 @@
|
|||
[clojure.core.async :as a]
|
||||
[clojure.spec.alpha :as s]
|
||||
[cuerdas.core :as str]
|
||||
[promesa.core :as p]
|
||||
[promesa.exec :as px]
|
||||
[integrant.core :as ig]
|
||||
[lambdaisland.uri :as u]
|
||||
[promesa.core :as p]
|
||||
[promesa.exec :as px]))
|
||||
|
||||
(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 :hint "error on persist-events" :cause cause))))]
|
||||
|
||||
(fn [request respond raise]
|
||||
(fn [request respond _]
|
||||
;; Fire and forget, log error in case of errro
|
||||
(-> (px/submit! executor #(handler request))
|
||||
(p/catch handle-error))
|
||||
|
|
Loading…
Add table
Reference in a new issue