# HG changeset patch # User Kim Alvefur # Date 1508354503 -7200 # Node ID 5df2f240173bb676e71e621a80b87f8910d1da88 # Parent 0c0990a575decbca1c9bcd1cfa4dd29929e6b8ae util.pubsub: Return an empty list if specific item asked for does not exist (thanks jonasw) diff -r 0c0990a575de -r 5df2f240173b util/pubsub.lua --- a/util/pubsub.lua Wed Oct 18 11:43:07 2017 +0100 +++ b/util/pubsub.lua Wed Oct 18 21:21:43 2017 +0200 @@ -338,7 +338,7 @@ 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