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 | 04c82ce1bc86ace025c55e7f7a63044edfc237df (patch) | |
tree | 5112717a057722f10d70b13097004eb77572fe54 /tools/migration/migrator/mtools.lua | |
parent | 429bf04ce448523a3f4bad4a3c60afd420a69cdf (diff) | |
download | prosody-04c82ce1bc86ace025c55e7f7a63044edfc237df.tar.gz prosody-04c82ce1bc86ace025c55e7f7a63044edfc237df.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; +} |