Browse Source

chore: rm fs-watcher debug print

Andelf 3 years ago
parent
commit
f7ba2b5864
1 changed files with 5 additions and 6 deletions
  1. 5 6
      src/main/frontend/handler/events.cljs

+ 5 - 6
src/main/frontend/handler/events.cljs

@@ -346,12 +346,11 @@
 
 (defmethod handle :file-watcher/changed [[_ ^js event]]
   (let [type (.-event event)
-        payload (js->clj event :keywordize-keys true)
-        payload' (-> payload
-                     (update :path js/decodeURI))]
-    (prn ::fs-watcher payload)
-    (fs-watcher/handle-changed! type payload')
-    (sync/file-watch-handler type payload')))
+        payload (-> event
+                    (js->clj :keywordize-keys true)
+                    (update :path js/decodeURI))]
+    (fs-watcher/handle-changed! type payload)
+    (sync/file-watch-handler type payload)))
 
 (defmethod handle :rebuild-slash-commands-list [[_]]
   (page-handler/rebuild-slash-commands-list!))