From d56a75b629d161df5bb2b75a9d29531910c725a4 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 29 Aug 2019 10:55:05 +0100 Subject: [PATCH] bug: url not being set properly when reading from cache --- src/Repo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }