Fix error when no scanners are present

This commit is contained in:
Andrei Pohilko
2022-10-24 15:42:19 +01:00
parent 09886ad933
commit 997f951d0c

View File

@@ -12,7 +12,7 @@ type ScannersHandler struct {
}
func (h *ScannersHandler) List(c *gin.Context) {
var res []string
res := make([]string, 0)
for _, scanner := range h.Data.Scanners {
res = append(res, scanner.Name())
}