# HG changeset patch # User Marco Cirillo # Date 1325960054 0 # Node ID 967ba17b1d2a92c848a300b45efee054de5378cf # Parent 2b71ba2739e0dc3f46c3073cc51efb47b274d7ad mod_xml_status: stick to one code "punctuation" style. diff -r 2b71ba2739e0 -r 967ba17b1d2a mod_xml_status/mod_xml_status.lua --- a/mod_xml_status/mod_xml_status.lua Sat Jan 07 18:12:38 2012 +0000 +++ b/mod_xml_status/mod_xml_status.lua Sat Jan 07 18:14:14 2012 +0000 @@ -91,12 +91,9 @@ -- http handlers local function response(code, r, h) - local response = { - status = code; - body = r; - } + local response = { status = code, body = r } - if h then response.headers = h; end + if h then response.headers = h end return response end @@ -116,7 +113,7 @@ end if prosody.start_time then - setup(); + setup() else - module:hook("server-started", setup); + module:hook("server-started", setup) end