mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 11:48:04 +00:00
Fix error when no scanners are present
This commit is contained in:
@@ -12,7 +12,7 @@ type ScannersHandler struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *ScannersHandler) List(c *gin.Context) {
|
func (h *ScannersHandler) List(c *gin.Context) {
|
||||||
var res []string
|
res := make([]string, 0)
|
||||||
for _, scanner := range h.Data.Scanners {
|
for _, scanner := range h.Data.Scanners {
|
||||||
res = append(res, scanner.Name())
|
res = append(res, scanner.Name())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user