diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 0330c21b..03c5f7dd 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -85,12 +85,12 @@ def last_update content = File.read(LAST_UPDATE_FILE) date = Time.parse(content) rescue nil end - return date + date end def update_required? - date = last_update() or Time.parse('2000-01-01') - return date < 5.days.ago + date = last_update or Time.parse('2000-01-01') + date < 5.days.ago end # Define colors diff --git a/wpscan.rb b/wpscan.rb index 69fca753..b2128676 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -36,7 +36,7 @@ def main if wpscan_options.version puts "Current version: #{WPSCAN_VERSION}" - date = last_update() + date = last_update puts "Last db update: #{date.strftime('%Y-%m-%d')}" unless date.nil? exit(0) end