From a503d451da743429e15d824c21266052726ea2cf Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Wed, 10 Jan 2024 15:42:16 +0800 Subject: [PATCH] fix: unit tests --- src/main/frontend/handler/common/file.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/common/file.cljs b/src/main/frontend/handler/common/file.cljs index d5da04af67..d486c49260 100644 --- a/src/main/frontend/handler/common/file.cljs +++ b/src/main/frontend/handler/common/file.cljs @@ -75,7 +75,7 @@ :fs/local-file-change - file changed on local disk :fs/remote-file-change - file changed on remote" [repo-url file-path content {:fs/keys [event] :as options}] - (let [db-conn (db/get-db repo-url false)] + (when-let [db-conn (db/get-db repo-url false)] (case event ;; the file is already in db, so we can use the existing file's blocks ;; to do the diff-merge