diff --git a/lib/x/errors/too_many_requests.rb b/lib/x/errors/too_many_requests.rb index 228fa81..2530c1c 100644 --- a/lib/x/errors/too_many_requests.rb +++ b/lib/x/errors/too_many_requests.rb @@ -44,7 +44,7 @@ def next_available_in private def limits - @limits ||= response.to_hash.keys.filter_map { |k, _v| k.match(/x-(.*-limit.*)-limit/)&.captures&.first } + @limits ||= response.to_hash.keys.filter_map { |k| k.match(/x-(.*-limit.*)-limit/)&.captures&.first } end end end