From c1be7ea62f7f464c34b7d4d29488d18bbb0c969f Mon Sep 17 00:00:00 2001 From: GCorbel Date: Wed, 29 Nov 2023 15:43:21 -0500 Subject: [PATCH] minor change --- lib/x/errors/too_many_requests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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