Please the rubocop god

bug/bundler_fix
Carter 2017-05-23 15:13:55 -04:00 committed by GitHub
parent e945773576
commit c73e7673b1
1 changed files with 11 additions and 13 deletions

View File

@ -89,19 +89,17 @@ class MetasploitModule < Msf::Post
end end
end end
def run def run
if datastore['IGNORE_SYSTEM'] if datastore['IGNORE_SYSTEM']
do_migrate do_migrate
elsif !datastore['IGNORE_SYSTEM'] && is_system? elsif !datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! Aborting migration.') print_error('You are running as SYSTEM! Aborting migration.')
elsif datastore['IGNORE_SYSTEM'] && is_system? elsif datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! You will lose your privileges!') print_error('You are running as SYSTEM! You will lose your privileges!')
do_migrate do_migrate
elsif !datastore['IGNORE_SYSTEM'] && !is_system? elsif !datastore['IGNORE_SYSTEM'] && !is_system?
print_status('You\'re not running as SYSTEM. Moving on...') print_status('You\'re not running as SYSTEM. Moving on...')
do_migrate do_migrate
end end
end end
end end