dont post results if no url set

This commit is contained in:
James 2020-02-03 15:25:18 +00:00
parent 7fada2c155
commit 05d4e2e3c1

View File

@ -17,6 +17,7 @@ final class Poster{
} }
public function post($url, $user, $pass, $repoUser, $repo, $title='Test Results'){ public function post($url, $user, $pass, $repoUser, $repo, $title='Test Results'){
if(!$url) return;
// open connection and repo // open connection and repo
$this->client=new Client($url, $user, $pass); $this->client=new Client($url, $user, $pass);
$this->repo=$this->client->getRepo($repoUser, $repo); $this->repo=$this->client->getRepo($repoUser, $repo);