do not rescue
This commit is contained in:
parent
301880b600
commit
5045710487
|
@ -19,7 +19,6 @@ class Travis::Api::App
|
||||||
return @endpoint if defined? @endpoint and @endpoint
|
return @endpoint if defined? @endpoint and @endpoint
|
||||||
return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present?
|
return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present?
|
||||||
@endpoint = Object.const_get(headers['X-Endpoint']) + headers['X-Pattern']
|
@endpoint = Object.const_get(headers['X-Endpoint']) + headers['X-Pattern']
|
||||||
rescue NameError
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user