diff --git a/src/Repo.php b/src/Repo.php index 362b2a9..358e8d8 100644 --- a/src/Repo.php +++ b/src/Repo.php @@ -33,8 +33,8 @@ class Repo{ } public function getLabelByName($name){ + $url="repos/{$this->user}/{$this->repo}/labels"; if(!isset($this->cache['lables'])){ - $url="repos/{$this->user}/{$this->repo}/labels"; $this->cache['lables']=$this->client->request($url); }