aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jborg@coreweave.com>2024-03-21 08:57:43 -0400
committerJakob Borg <jborg@coreweave.com>2024-03-21 08:57:43 -0400
commit4dfb9d7c83ed172f12ae19408517961f4a49beeb (patch)
tree4f12c641210365ca27fa4e9315c9943a4dd5d538
parent2f15670094146ecb326610b2ff5b165b70410f3e (diff)
downloadsyncthing-4dfb9d7c83ed172f12ae19408517961f4a49beeb.tar.gz
syncthing-4dfb9d7c83ed172f12ae19408517961f4a49beeb.zip
lib/api: Missing return after HTTP error
-rw-r--r--lib/api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/api.go b/lib/api/api.go
index 21f41f6f4..f25ec4e1f 100644
--- a/lib/api/api.go
+++ b/lib/api/api.go
@@ -977,6 +977,7 @@ func (s *service) getDBFile(w http.ResponseWriter, r *http.Request) {
av, err := s.model.Availability(folder, gf, protocol.BlockInfo{})
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
}
mtimeMapping, mtimeErr := s.model.GetMtimeMapping(folder, file)