do not rescue

This commit is contained in:
Konstantin Haase 2015-01-14 14:19:43 +01:00
parent 301880b600
commit 5045710487

View File

@ -19,7 +19,6 @@ class Travis::Api::App
return @endpoint if defined? @endpoint and @endpoint
return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present?
@endpoint = Object.const_get(headers['X-Endpoint']) + headers['X-Pattern']
rescue NameError
end
end
end