Merge pull request #79 from travis-ci/hh-xml-responder-nil-last-build

Only allow XML response if repo has a build
This commit is contained in:
Josh Kalderimis 2013-10-27 10:02:10 -07:00
commit 0c3b4d60eb

View File

@ -16,7 +16,7 @@ module Travis::Api::App::Responders
}
def apply?
super && resource.is_a?(Repository)
super && resource.is_a?(Repository) && last_build
end
def apply