Browse Source

fix: add pre condition for sync-state

Tienson Qin 3 years ago
parent
commit
86c18bd706
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/fs/sync.cljs

+ 1 - 0
src/main/frontend/fs/sync.cljs

@@ -1978,6 +1978,7 @@
 (defn sync-state--stopped?
   "Graph syncing is stopped"
   [sync-state]
+  {:pre [(s/valid? ::sync-state sync-state)]}
   (= ::stop (:state sync-state)))
 
 ;;; ### remote->local syncer & local->remote syncer