Fixed list scan endpoint

This commit is contained in:
Ice3man 2022-12-18 19:16:39 +05:30
parent 51a26ca2c1
commit 8eda1a2458

View File

@ -46,13 +46,16 @@ func (r *Runner) getScanList(limit int) error {
} }
} }
} }
if e != nil {
return e
}
if count == 0 { if count == 0 {
return errors.New("no scan list found") return errors.New("no scan list found")
} }
if !r.options.NoTables { if !r.options.NoTables {
r.prettyPrintTable(header, values) r.prettyPrintTable(header, values)
} }
return e return nil
} }
func (r *Runner) listDatasources() error { func (r *Runner) listDatasources() error {