From 9273398c0e1c1868c8d084e5ca730fbc4858b93e Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 18 Sep 2014 00:07:13 +0200 Subject: [PATCH] Shorter if statement --- wpscan.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpscan.rb b/wpscan.rb index 6761a620..c100dd0b 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -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