mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 03:12:38 +00:00
chore: fix lint
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
(ns frontend.async-util)
|
||||
(ns frontend.async-util
|
||||
"Some cljs.core.async relate macros and fns.
|
||||
see also: https://gist.github.com/vvvvalvalval/f1250cec76d3719a8343")
|
||||
|
||||
(defmacro go-try
|
||||
[& body]
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
[:block-uuid :uuid]]]]]]
|
||||
[:ex-data {:optional true} [:map [:type :keyword]]]
|
||||
[:ex-message {:optional true} :any]])
|
||||
(def data-from-ws-decoder (m/decoder data-from-ws-schema mt/string-transformer))
|
||||
|
||||
(def data-from-ws-coercer (m/coercer data-from-ws-schema mt/string-transformer))
|
||||
(def data-from-ws-validator (m/validator data-from-ws-schema))
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
[frontend.modules.outliner.transaction :as outliner-tx]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[frontend.async-util :include-macros true :refer [<? go-try]]
|
||||
[frontend.async-util :include-macros true :refer [<?]]
|
||||
[malli.core :as m]
|
||||
[malli.util :as mu]))
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
use `rollback` to replace current-branch with old-branch.
|
||||
use `commit` to remove old-branch."
|
||||
[repo]
|
||||
(let [{:keys [current-branch old-branch]} (get @*ops-store repo)]
|
||||
(let [{:keys [current-branch]} (get @*ops-store repo)]
|
||||
(assert (some? current-branch) repo)
|
||||
(swap! *ops-store assoc-in [repo :old-branch] current-branch)))
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
(:require-macros
|
||||
[frontend.db.rtc.macro :refer [with-sub-data-from-ws get-req-id get-result-ch]])
|
||||
(:require [cljs-http.client :as http]
|
||||
[cljs.core.async :as async :refer [<! chan go offer!]]
|
||||
[cljs.core.async :as async :refer [<! chan offer!]]
|
||||
[frontend.async-util :include-macros true :refer [<? go-try]]
|
||||
[frontend.config :as config]
|
||||
[frontend.db.rtc.const :as rtc-const]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[frontend.async-util :include-macros true :refer [go-try <?]]))
|
||||
[frontend.util :as util]))
|
||||
|
||||
(def WebSocketOPEN (if (= *target* "nodejs")
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user