Shorter if statement

This commit is contained in:
Peter
2014-09-18 00:07:13 +02:00
parent a5ed6ad134
commit 9273398c0e

View File

@@ -47,8 +47,8 @@ def main
puts "#{blue('[i]')} Updating the Database ..."
DbUpdater.new(DATA_DIR).update(wpscan_options.verbose)
puts "#{blue('[i]')} Update completed."
# Exit program if only one option --update is used
exit(0) if wpscan_options.to_h.count == 1 && wpscan_options.update
# Exit program if only option --update is used
exit(0) unless wpscan_options.url
end
unless wpscan_options.url