From 0a385a3953bff3088fb3d4d53cf6a5a9b618f006 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 2 Feb 2017 20:49:09 +0100 Subject: tools/migration/migrator/*: Remove use of module() --- tools/migration/migrator/jabberd14.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/migration/migrator/jabberd14.lua') diff --git a/tools/migration/migrator/jabberd14.lua b/tools/migration/migrator/jabberd14.lua index 2f0b0b78..a4eef3f7 100644 --- a/tools/migration/migrator/jabberd14.lua +++ b/tools/migration/migrator/jabberd14.lua @@ -9,7 +9,6 @@ local ipairs = ipairs; local coroutine = coroutine; local print = print; -module "jabberd14" local function is_dir(path) return lfs.attributes(path, "mode") == "directory"; end local function is_file(path) return lfs.attributes(path, "mode") == "file"; end @@ -128,7 +127,7 @@ local function loop_over_hosts(path, cb) end end -function reader(input) +local function reader(input) local path = clean_path(assert(input.path, "no input.path specified")); assert(is_dir(path), "input.path is not a directory"); @@ -139,4 +138,6 @@ function reader(input) end end -return _M; +return { + reader = reader; +}; -- cgit v1.2.3