* Correct or Optimize codes to meet code styles.

This commit is contained in:
dingguodong
2021-11-16 10:46:48 +08:00
parent f1de062231
commit 2d9d95cc98
13 changed files with 76 additions and 70 deletions
+2 -2
View File
@@ -1053,10 +1053,10 @@ class gitlabModel extends model
$hook->push_events = true;
$hook->merge_requests_events = true;
/* Return a empty array if where is a existing webhook. */
/* Return an empty array if where is one existing webhook. */
if($this->isWebhookExists($repo, $hook->url)) return array();
$result = $this->apiCreateHook($repo->gitlab, $repo->project, $hook);
$result = $this->apiCreateHook($repo->gitlab, $repo->project, $hook);
if(!empty($result->id)) return true;
return false;