Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 10554:e1de29c41259
mod_pubsub: Ignore an unused variable [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 23 Dec 2019 22:28:42 +0100 |
| parents | 0a2d7efca039 |
| children | 15fe9f0bb483 |
comparison
equal
deleted
inserted
replaced
| 10553:4d8119ffd433 | 10554:e1de29c41259 |
|---|---|
| 808 module:log("error", "Unable to get items: %s", err); | 808 module:log("error", "Unable to get items: %s", err); |
| 809 return true; | 809 return true; |
| 810 end | 810 end |
| 811 module:log("debug", "Listed items %s", data); | 811 module:log("debug", "Listed items %s", data); |
| 812 return it.reverse(function() | 812 return it.reverse(function() |
| 813 -- luacheck: ignore 211/when | |
| 813 local id, payload, when, publisher = data(); | 814 local id, payload, when, publisher = data(); |
| 814 if id == nil then | 815 if id == nil then |
| 815 return; | 816 return; |
| 816 end | 817 end |
| 817 local item = create_encapsulating_item(id, payload, publisher); | 818 local item = create_encapsulating_item(id, payload, publisher); |
