Software /
code /
prosody
Comparison
util/adhoc.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7912:2c204ba8e52e |
child | 10667:49312378ba1d |
comparison
equal
deleted
inserted
replaced
8381:7f6184474149 | 8382:e5d00bf4a4d5 |
---|---|
1 -- luacheck: ignore 212/self | |
2 | |
1 local function new_simple_form(form, result_handler) | 3 local function new_simple_form(form, result_handler) |
2 return function(self, data, state) | 4 return function(self, data, state) |
3 if state then | 5 if state then |
4 if data.action == "cancel" then | 6 if data.action == "cancel" then |
5 return { status = "canceled" }; | 7 return { status = "canceled" }; |