From 18625dbc11e6982286a973094e51d2c1c18ee53c Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Fri, 19 Feb 2021 16:19:35 +0000 Subject: [PATCH] registry: remove conversion (internal API, and not used anywhere) --- lib/httpx/registry.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/httpx/registry.rb b/lib/httpx/registry.rb index b1938dc6..6cf4015f 100644 --- a/lib/httpx/registry.rb +++ b/lib/httpx/registry.rb @@ -62,13 +62,7 @@ module HTTPX handler = @registry.fetch(tag) raise(Error, "#{tag} is not registered in #{self}") unless handler - case handler - when Symbol, String - obj = const_get(handler) - @registry[tag] = obj - else - handler - end + handler end # @param [Object] tag the identifier for the handler in the registry