diff options
author | Jakob Borg <jborg@coreweave.com> | 2024-03-21 08:57:43 -0400 |
---|---|---|
committer | Jakob Borg <jborg@coreweave.com> | 2024-03-21 08:57:43 -0400 |
commit | 4dfb9d7c83ed172f12ae19408517961f4a49beeb (patch) | |
tree | 4f12c641210365ca27fa4e9315c9943a4dd5d538 | |
parent | 2f15670094146ecb326610b2ff5b165b70410f3e (diff) |
lib/api: Missing return after HTTP error
-rw-r--r-- | lib/api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/api.go b/lib/api/api.go index 21f41f6f45..f25ec4e1f9 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) |