Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit f3e837f

Browse files
committed
Fix warnings which block the CI builds
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
1 parent e08a1fd commit f3e837f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lt/util/ipc.cljs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55

66
;; `send` and `on` are declared here with their bodies defined later as otherwise Codox will use the
77
;; redefined `send` and `on` in the below when block instead.
8-
(declare send)
8+
(declare transport)
99

10-
(declare on)
10+
(declare start)
1111

1212
;; Set $IPC_DEBUG to debug incoming and outgoing ipc messages for the renderer process
1313
(when (aget js/process.env "IPC_DEBUG")
14-
(let [old-send send
15-
old-on on]
16-
(def send (fn [& args]
17-
(prn "RENDERER->" args)
18-
(apply old-send args)))
19-
(def on (fn [channel cb]
20-
(old-on channel (fn [_ & args]
21-
(prn "->RENDERER" channel args)
22-
(apply cb args)))))))
14+
(let [old-send transport
15+
old-on start]
16+
(def transport (fn [& args]
17+
(prn "RENDERER->" args)
18+
(apply old-send args)))
19+
(def start (fn [channel cb]
20+
(old-on channel (fn [_ & args]
21+
(prn "->RENDERER" channel args)
22+
(apply cb args)))))))
2323

2424
(defn send
2525
"Delegates to ipc.send, which asynchronously sends args to the browser process's channel."

0 commit comments

Comments
 (0)