From f63bb1c6a2ec12b2326a546d7550c3c05d89eb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Hendricksen?= Date: Thu, 7 Jul 2016 01:16:39 -0400 Subject: [PATCH] if this logic isn't needed we should take it out later --- lib/travis/api/v3/service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)