Signed-off-by: Seongmin Lee git@boltless.me
+3
Diff
round #0
+3
knotmirror/adminpage.go
+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
boltless.me
submitted
#0
1 commit
expand
collapse
knotmirror: add missing returns
Signed-off-by: Seongmin Lee <git@boltless.me>
3/3 failed
expand
collapse
expand 1 comment
pull request successfully merged
lgtm