From 5728c38e66ba84c4243449cd731ba10461e17bc4 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 17 Aug 2021 17:49:47 +0800 Subject: [PATCH] * Remove and correct useless statements. --- module/gitlab/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index e80bbf41e2..8b49ceda0c 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -277,8 +277,8 @@ class gitlabModel extends model public function getRefOptions($gitlabID, $projectID) { $refList = array(); - $branches = $this->loadModel('gitlab')->apiGetBranches($gitlabID, $projectID); - $tags = $this->loadModel('gitlab')->apiGetTags($gitlabID, $projectID); + $branches = $this->apiGetBranches($gitlabID, $projectID); + $tags = $this->apiGetTags($gitlabID, $projectID); foreach($branches as $branch) $refList[] = "Branch::" . $branch->name; foreach($tags as $tag) $refList[] = "Tag::" . $tag->name; return $refList;