Monorepo for Tangled tangled.org

knotmirror: add missing returns #1219

merged opened by boltless.me targeting master from sl/lmuqpqznotsl
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mhvdxy5pvn22
+3
Diff #0
+3
knotmirror/adminpage.go
··· 87 87 repos, err := db.ListRepos(r.Context(), s.db, page, did, knot, state) 88 88 if err != nil { 89 89 http.Error(w, err.Error(), http.StatusInternalServerError) 90 + return 90 91 } 91 92 counts, err := db.GetRepoCountsByState(r.Context(), s.db) 92 93 if err != nil { 93 94 http.Error(w, err.Error(), http.StatusInternalServerError) 95 + return 94 96 } 95 97 err = tpl.ExecuteTemplate(w, "base", map[string]any{ 96 98 "Repos": repos, ··· 117 119 hosts, err := db.ListHosts(r.Context(), s.db, status) 118 120 if err != nil { 119 121 http.Error(w, err.Error(), http.StatusInternalServerError) 122 + return 120 123 } 121 124 err = tpl.ExecuteTemplate(w, "base", map[string]any{ 122 125 "Hosts": hosts,

History

1 round 1 comment
sign up or login to add to the discussion
boltless.me submitted #0
1 commit
expand
knotmirror: add missing returns
3/3 failed
expand
expand 1 comment
pull request successfully merged