diff --git a/lib/travis/api/v3/service.rb b/lib/travis/api/v3/service.rb index d0cb719f..f3243189 100644 --- a/lib/travis/api/v3/service.rb +++ b/lib/travis/api/v3/service.rb @@ -68,7 +68,7 @@ module Travis::API::V3 def check_login_and_find(*args) raise LoginRequired unless access_control.full_access_or_logged_in? - find(*args) # should this raise NotFound if nil? Can it return nil? see above? + find(*args) or raise NotFound end def not_found(actually_not_found = false, type = nil)