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:
commit
0c3b4d60eb
|
@ -16,7 +16,7 @@ module Travis::Api::App::Responders
|
||||||
}
|
}
|
||||||
|
|
||||||
def apply?
|
def apply?
|
||||||
super && resource.is_a?(Repository)
|
super && resource.is_a?(Repository) && last_build
|
||||||
end
|
end
|
||||||
|
|
||||||
def apply
|
def apply
|
||||||
|
|
Loading…
Reference in New Issue
Block a user