Added check for avoid searching empty strings

This commit is contained in:
Luca Deri 2022-03-18 11:17:57 +01:00
parent a78d3be40b
commit 2d969c1398

View file

@ -61,6 +61,19 @@ else
end
-- Empty query
if(isEmptyString(query)) then
local data = {
interface = ifname,
results = {},
}
-- tprint(results)
rest_utils.answer(rc, data)
return
end
local ifid = interface.getId()
--- Links