0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

📎 Fix unrelated linter issues.

This commit is contained in:
Andrey Antukh 2021-12-28 22:43:10 +01:00 committed by Alonso Torres
parent c394495a26
commit 7b487e1bc3
6 changed files with 11 additions and 13 deletions

View file

@ -10,7 +10,6 @@
{:analyze-call
{app.common.data/export hooks.export/export
potok.core/reify hooks.export/potok-reify
cljs.core/specify! hooks.export/clojure-specify
app.util.services/defmethod hooks.export/service-defmethod
}}

View file

@ -368,7 +368,7 @@
(assoc-in [:workspace-local :transform] :resize)))
ptk/WatchEvent
(watch [it state stream]
(watch [_ state stream]
(let [initial-position @ms/mouse-position
stoper (rx/filter ms/mouse-up? stream)
layout (:workspace-layout state)

View file

@ -31,7 +31,7 @@
(specify! state
cljs.core/IFn
(-invoke
([it val]
([_ val]
(if val
(wapi/request-fullscreen (mf/ref-val container))
(wapi/exit-fullscreen)))))))]

View file

@ -85,31 +85,30 @@
(mf/ref-val state-ref))
IReset
(-reset! [it new-value]
(-reset! [_ new-value]
(if (nil? new-value)
(mf/set-ref-val! state-ref (get-state))
(mf/set-ref-val! state-ref new-value))
(render inc))
ISwap
(-swap! [self f]
(-swap! [_ f]
(let [f (wrap-update-fn f opts)]
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref)))
(render inc)))
(-swap! [self f x]
(-swap! [_ f x]
(let [f (wrap-update-fn f opts)]
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x))
(render inc)))
(-swap! [self f x y]
(-swap! [_ f x y]
(let [f (wrap-update-fn f opts)]
(mf/set-ref-val! state-ref (f (mf/ref-val state-ref) x y))
(render inc)))
(-swap! [self f x y more]
(-swap! [_ f x y more]
(let [f (wrap-update-fn f opts)]
(mf/set-ref-val! state-ref (apply f (mf/ref-val state-ref) x y more))
(render inc)))))

View file

@ -27,12 +27,12 @@
(extend-protocol IBodyData
globals/FormData
(-get-body-data [it] it)
(-update-headers [it headers]
(-update-headers [_ headers]
(dissoc headers "content-type" "Content-Type"))
default
(-get-body-data [it] it)
(-update-headers [it headers] headers))
(-update-headers [_ headers] headers))
(defn translate-method
[method]

View file

@ -157,11 +157,11 @@
(extend-protocol IPrintWithWriter
DateTime
(-pr-writer [p writer opts]
(-pr-writer [p writer _]
(-write writer (str/fmt "#stks/datetime \"%s\"" (format p :iso))))
Duration
(-pr-writer [p writer opts]
(-pr-writer [p writer _]
(-write writer (str/fmt "#stks/duration \"%s\"" (format p :iso)))))
(defn- resolve-format