diff options
author | Kim Alvefur <zash@zash.se> | 2017-02-02 20:49:09 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-02-02 20:49:09 +0100 |
commit | 0a385a3953bff3088fb3d4d53cf6a5a9b618f006 (patch) | |
tree | 5112717a057722f10d70b13097004eb77572fe54 /tools/migration/migrator/mtools.lua | |
parent | f0918f4e1b59ca6f360a4b1ae2974a9c339e71a1 (diff) | |
download | prosody-0a385a3953bff3088fb3d4d53cf6a5a9b618f006.tar.gz prosody-0a385a3953bff3088fb3d4d53cf6a5a9b618f006.zip |
tools/migration/migrator/*: Remove use of module()
Diffstat (limited to 'tools/migration/migrator/mtools.lua')
-rw-r--r-- | tools/migration/migrator/mtools.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/migration/migrator/mtools.lua b/tools/migration/migrator/mtools.lua index e7b774bb..cfbfcce8 100644 --- a/tools/migration/migrator/mtools.lua +++ b/tools/migration/migrator/mtools.lua @@ -4,9 +4,8 @@ local print = print; local t_insert = table.insert; local t_sort = table.sort; -module "mtools" -function sorted(params) +local function sorted(params) local reader = params.reader; -- iterator to get items from local sorter = params.sorter; -- sorting function @@ -28,7 +27,7 @@ function sorted(params) end -function merged(reader, merger) +local function merged(reader, merger) local item1 = reader(); local merged = { item1 }; @@ -53,4 +52,7 @@ function merged(reader, merger) end -return _M; +return { + sorted = sorted; + merged = merged; +} |