Skip to content

Commit 632ce81

Browse files
olegrokdokshina
authored andcommitted
cleanup compat.require function
Currently we use fully reloadable key_def and merger modules. There is no sense to blacklist something.
1 parent 362ebab commit 632ce81

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crud/common/compat.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function compat.require(module_name, builtin_module_name)
1111
if module_cached ~= nil then
1212
module = module_cached
1313
elseif package.search(module_name) then
14-
-- we don't use pcall(require, modile_name) here because it
14+
-- we don't use pcall(require, module_name) here because it
1515
-- leads to ignoring errors other than 'No LuaRocks module found'
1616
log.info('%q module is used', module_name)
1717
module = require(module_name)
@@ -22,11 +22,6 @@ function compat.require(module_name, builtin_module_name)
2222

2323
rawset(_G, module_cached_name, module)
2424

25-
local hotreload = package.loaded['cartridge.hotreload']
26-
if hotreload ~= nil then
27-
hotreload.whitelist_globals({module_cached_name})
28-
end
29-
3025
return module
3126
end
3227

0 commit comments

Comments
 (0)