From 4dfb9d7c83ed172f12ae19408517961f4a49beeb Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 21 Mar 2024 08:57:43 -0400 Subject: [PATCH] lib/api: Missing return after HTTP error --- lib/api/api.go | 1 + 1 file changed, 1 insertion(+) 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)