Switching from if mod.nil? to unless mod
Because it reads nicer, though `mod` will never be `FalseClass`bug/bundler_fix
parent
63c66f66a0
commit
e88c4f1587
|
@ -2419,11 +2419,11 @@ class Core
|
|||
|
||||
begin
|
||||
mod = framework.modules.create(mod_name)
|
||||
if mod.nil?
|
||||
unless mod
|
||||
# Try one more time; see #4549
|
||||
sleep 3
|
||||
mod = framework.modules.create(mod_name)
|
||||
if mod.nil?
|
||||
unless mod
|
||||
print_error("Failed to load module: #{mod_name}")
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue