Skip to content

Commit

Permalink
refactor(init): module stub
Browse files Browse the repository at this point in the history
If module doesn't return a result, create a stub function.
  • Loading branch information
thelindat committed Sep 18, 2022
1 parent f1671f1 commit 2121472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2121472

Please sign in to comment.