util/caps.lua
changeset 8558 4f0f5b49bb03
parent 6780 5de6b93d0190
child 12979 d10957394a3c
equal deleted inserted replaced
8557:12a68e0d0ecf 8558:4f0f5b49bb03
    11 
    11 
    12 local t_insert, t_sort, t_concat = table.insert, table.sort, table.concat;
    12 local t_insert, t_sort, t_concat = table.insert, table.sort, table.concat;
    13 local ipairs = ipairs;
    13 local ipairs = ipairs;
    14 
    14 
    15 local _ENV = nil;
    15 local _ENV = nil;
       
    16 -- luacheck: std none
    16 
    17 
    17 local function calculate_hash(disco_info)
    18 local function calculate_hash(disco_info)
    18 	local identities, features, extensions = {}, {}, {};
    19 	local identities, features, extensions = {}, {}, {};
    19 	for _, tag in ipairs(disco_info) do
    20 	for _, tag in ipairs(disco_info) do
    20 		if tag.name == "identity" then
    21 		if tag.name == "identity" then