Software /
code /
prosody
Comparison
util/template.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 |
parent | 8418:ad1e10c93b41 |
child | 12975:d10957394a3c |
comparison
equal
deleted
inserted
replaced
8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
---|---|
8 local debug = debug; | 8 local debug = debug; |
9 local t_remove = table.remove; | 9 local t_remove = table.remove; |
10 local parse_xml = require "util.xml".parse; | 10 local parse_xml = require "util.xml".parse; |
11 | 11 |
12 local _ENV = nil; | 12 local _ENV = nil; |
13 -- luacheck: std none | |
13 | 14 |
14 local function trim_xml(stanza) | 15 local function trim_xml(stanza) |
15 for i=#stanza,1,-1 do | 16 for i=#stanza,1,-1 do |
16 local child = stanza[i]; | 17 local child = stanza[i]; |
17 if child.name then | 18 if child.name then |