Don't use parentheses around a method call

This commit is contained in:
Erik Michaels-Ober 2016-08-08 10:55:38 -07:00
parent a3a362de64
commit 2c334ed6a9
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module OmniAuth
middleware = klass
else
begin
middleware = OmniAuth::Strategies.const_get((OmniAuth::Utils.camelize(klass.to_s)).to_s)
middleware = OmniAuth::Strategies.const_get(OmniAuth::Utils.camelize(klass.to_s).to_s)
rescue NameError
raise(LoadError.new("Could not find matching strategy for #{klass.inspect}. You may need to install an additional gem (such as omniauth-#{klass})."))
end