lib/travis/cli/report.rb in travis-1.13.3 vs lib/travis/cli/report.rb in travis-1.14.0
- old
+ new
@@ -81,10 +81,9 @@
end
end
def endpoint_name(url, prefix = '')
case url
- when Travis::Client::ORG_URI then "#{prefix}org"
when Travis::Client::COM_URI then "#{prefix}com"
when /api-staging\.travis-ci/ then endpoint_name(url.sub('api-staging.', 'api.'), 'staging-')
else
key, = config['enterprise'].detect { |_k, v| v.start_with? url } if config['enterprise'].respond_to?(:detect)
key ? 'enterprise %p' % key : '???'