From ec998641fdd55a1ac784895eed6438795112905a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 18 Oct 2017 21:21:43 +0200 Subject: util.pubsub: Return an empty list if specific item asked for does not exist (thanks jonasw) --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/pubsub.lua b/util/pubsub.lua index 9397484a..575153b8 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -338,7 +338,7 @@ function service:get_items(node, actor, id) if id then -- Restrict results to a single specific item local with_id = self.data[node]:get(id); if not with_id then - return false, "item-not-found"; + return true, { }; end return true, { id, [id] = with_id }; else -- cgit v1.2.3