remove linting hints

This commit is contained in:
2023-12-17 21:24:14 +01:00
parent 7d933e8476
commit d57268f9b0

4
api.go
View File

@@ -62,7 +62,7 @@ func GetStats(w http.ResponseWriter, r *http.Request) {
Unknown int `json:"unknown"`
})
for _, c := range v {
switch c.Status { //nolint:exhaustive
switch c.Status {
case dbpackage.StatusFailed:
resp.Failed = c.Count
case dbpackage.StatusSkipped:
@@ -75,7 +75,7 @@ func GetStats(w http.ResponseWriter, r *http.Request) {
}
var v2 []struct {
Status dbpackage.Lto `json:"lto"` //nolint:tagliatelle
Status dbpackage.Lto `json:"lto"`
Count int `json:"count"`
}