Updates rubocop dep

This commit is contained in:
erwanlr
2021-01-29 11:56:04 +01:00
parent f30255d6d8
commit fa3005f2b7
9 changed files with 11 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ module WPScan
output('@notice', msg: 'It seems like you have not updated the database for some time.')
print '[?] Do you want to update now? [Y]es [N]o, default: [N]'
/^y/i.match?(Readline.readline) ? true : false
/^y/i.match?(Readline.readline)
end
def update_db

View File

@@ -63,7 +63,7 @@ module WPScan
def webshot_enabled?
res = Browser.get(url, params: { webshot: 1, src: "http://#{default_allowed_domains.sample}" })
/WEBSHOT_ENABLED == true/.match?(res.body) ? false : true
!/WEBSHOT_ENABLED == true/.match?(res.body)
end
# @return [ Array<String> ] The default allowed domains (between the 2.0 and 2.8.13)