Mercurial > prosody-modules
comparison mod_s2s_status/mod_s2s_status.lua @ 5788:31c331d05a75
mod_s2s_status: Add missing return (thanks Zash)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 08 Dec 2023 12:45:22 +0000 |
| parents | b86282953663 |
| children |
comparison
equal
deleted
inserted
replaced
| 5787:e79f9dec35c0 | 5788:31c331d05a75 |
|---|---|
| 16 local domain_log = status_out[peer_domain]; | 16 local domain_log = status_out[peer_domain]; |
| 17 if not domain_log then | 17 if not domain_log then |
| 18 domain_log = {}; | 18 domain_log = {}; |
| 19 status_out[peer_domain] = domain_log; | 19 status_out[peer_domain] = domain_log; |
| 20 end | 20 end |
| 21 return domain_log; | |
| 21 end | 22 end |
| 22 | 23 |
| 23 local function get_connection_record(domain_log, id) | 24 local function get_connection_record(domain_log, id) |
| 24 for _, record in ipairs(domain_log) do | 25 for _, record in ipairs(domain_log) do |
| 25 if record.id == id then | 26 if record.id == id then |
