From 21214728b7c5be66cf67896b27e6123ce2701f30 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 18 Sep 2022 22:42:05 +1000 Subject: [PATCH] refactor(init): module stub If module doesn't return a result, create a stub function. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 00c7a6a9e..e6f0266bb 100644 --- a/init.lua +++ b/init.lua @@ -36,7 +36,7 @@ local function loadModule(self, module) end local result = fn() - self[module] = result + self[module] = result or function() end return self[module] end end