comparison mod_profile/mod_profile.lua @ 3181:1f2272cda0d7

mod_profile: Ignore shadowed variable name
author Kim Alvefur <zash@zash.se>
date Thu, 12 Jul 2018 21:09:41 +0200
parents 5163f7905371
children c25853bc387b
comparison
equal deleted inserted replaced
3180:00034d0cc05a 3181:1f2272cda0d7
15 end 15 end
16 16
17 local storage = module:open_store(); 17 local storage = module:open_store();
18 local legacy_storage = module:open_store("vcard"); 18 local legacy_storage = module:open_store("vcard");
19 19
20 local function get_item(vcard, name) 20 local function get_item(vcard, name) -- luacheck: ignore 431
21 local item; 21 local item;
22 for i=1, #vcard do 22 for i=1, #vcard do
23 item=vcard[i]; 23 item=vcard[i];
24 if item.name == name then 24 if item.name == name then
25 return item, i; 25 return item, i;