comparison mod_invites/mod_invites.lua @ 4344:844cfc8c4039

mod_invites: Fix some more luacheck warnings
author Matthew Wild <mwild1@gmail.com>
date Sun, 17 Jan 2021 12:50:19 +0000
parents 84e60c3d6e61
children 671bc55f0fc9
comparison
equal deleted inserted replaced
4343:ee313922b8d1 4344:844cfc8c4039
87 return invite.expires > now; 87 return invite.expires > now;
88 end 88 end
89 return it.filter(is_valid_invite, pairs(store:get(nil) or {})); 89 return it.filter(is_valid_invite, pairs(store:get(nil) or {}));
90 end 90 end
91 91
92 function get_account_invite_info(token) 92 function get_account_invite_info(token) --luacheck: ignore 131/get_account_invite_info
93 if not token then 93 if not token then
94 return nil, "no-token"; 94 return nil, "no-token";
95 end 95 end
96 96
97 -- Fetch from host store (account invite) 97 -- Fetch from host store (account invite)
103 end 103 end
104 104
105 return token_info; 105 return token_info;
106 end 106 end
107 107
108 function delete_account_invite(token) 108 function delete_account_invite(token) --luacheck: ignore 131/delete_account_invite
109 if not token then 109 if not token then
110 return nil, "no-token"; 110 return nil, "no-token";
111 end 111 end
112 112
113 return token_storage:set(nil, token, nil); 113 return token_storage:set(nil, token, nil);