comparison util/caps.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parents 5de6b93d0190
children d10957394a3c
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555: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