Switching from if mod.nil? to unless mod

Because it reads nicer, though `mod` will never be `FalseClass`
bug/bundler_fix
Tod Beardsley 2015-01-20 16:21:00 -06:00
parent 63c66f66a0
commit e88c4f1587
No known key found for this signature in database
GPG Key ID: BD63D0A3EA19CAAC
1 changed files with 2 additions and 2 deletions

View File

@ -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