remove linting hints
This commit is contained in:
4
api.go
4
api.go
@@ -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"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user