From 52e5b2ad26b99c586e2091b46084411b2dae1d09 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Mon, 4 Dec 2023 14:45:48 -0800 Subject: [PATCH] Use `Hash#each_value` to make `rubocop` happy. --- lib/ronin/vulns/sqli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ronin/vulns/sqli.rb b/lib/ronin/vulns/sqli.rb index dc6cf87..2a6e631 100644 --- a/lib/ronin/vulns/sqli.rb +++ b/lib/ronin/vulns/sqli.rb @@ -296,7 +296,7 @@ def vulnerable? # def check_for_sql_errors(response) if response.code == '500' - ERROR_PATTERNS.each do |database,error_pattern| + ERROR_PATTERNS.each_value do |error_pattern| if error_pattern =~ response.body return true end