Comparison

util/pubsub.lua @ 9204:c5a81acc1fc3

util.pubsub: Fix whitespace [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Aug 2018 14:33:49 +0100
parent 9203:c65bfddd3cc5
child 9206:33ee40dc3e25
comparison
equal deleted inserted replaced
9203:c65bfddd3cc5 9204:c5a81acc1fc3
600 600
601 -- Check node exists 601 -- Check node exists
602 if not self.nodes[node] then 602 if not self.nodes[node] then
603 return false, "item-not-found"; 603 return false, "item-not-found";
604 end 604 end
605 605
606 -- Returns success, id, item 606 -- Returns success, id, item
607 return true, self.data[node]:tail(); 607 return true, self.data[node]:tail();
608 end 608 end
609 609
610 function service:get_nodes(actor) 610 function service:get_nodes(actor)