Skip to content

Commit

Permalink
remove redundant codes
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and andelf committed Sep 7, 2023
1 parent c346116 commit 0cef911
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3397,12 +3397,9 @@
(defn <sync-start
[]
(go
(when (and (not @*sync-starting)
(<! (<should-start-sync?)))
(when-not @*sync-starting
(reset! *sync-starting true)
(if-not (and (state/enable-sync?)
(or (nil? (state/get-file-sync-state))
(= ::stop (:state (state/get-file-sync-state))))
(if-not (and (<! (<should-start-sync?))
(<! (<connectivity-testing)))
(reset! *sync-starting false)
(try
Expand Down

0 comments on commit 0cef911

Please sign in to comment.