summaryrefslogtreecommitdiff
path: root/lib/github
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-25 15:37:30 +0200
committerRémy Coutable <remy@rymai.me>2017-09-26 19:17:00 +0200
commit62120acf1d8a7b3abecfff71900ed423c1fdf473 (patch)
treee129d7b55b0bd407b41977e65d5c5657b39a9c09 /lib/github
parente484a06472890424c9f7174a3e80d5a5e43eae57 (diff)
downloadgitlab-ce-62120acf1d8a7b3abecfff71900ed423c1fdf473.tar.gz
Add a spec for Github::Client and revert an `if !` to `unless`38198-fetch-github-api-per-100
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/github')
-rw-r--r--lib/github/import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/github/import.rb b/lib/github/import.rb
index fdc82ff530d..f5f62dc8b6f 100644
--- a/lib/github/import.rb
+++ b/lib/github/import.rb
@@ -236,7 +236,7 @@ module Github
# for both features, like manipulating assignees, labels
# and milestones, are provided within the Issues API.
if representation.pull_request?
- return if !representation.has_labels? && !representation.has_comments?
+ return unless representation.has_labels? || representation.has_comments?
merge_request = MergeRequest.find_by!(target_project_id: project.id, iid: representation.iid)