From aeb1684c524628f7279eadce5e461880e9865349 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Mon, 24 Apr 2017 23:41:46 -0300 Subject: Fix small typo --- lib/github/import.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github/import.rb b/lib/github/import.rb index ef0ef9adc7a..fddd52af260 100644 --- a/lib/github/import.rb +++ b/lib/github/import.rb @@ -324,8 +324,8 @@ module Github remove_branch(pull_request.target_branch_name) unless pull_request.target_branch_exists? end - def label_ids(issuable) - issuable.map { |attrs| cached[:label_ids][attrs.fetch('name')] }.compact + def label_ids(labels) + labels.map { |attrs| cached[:label_ids][attrs.fetch('name')] }.compact end def milestone_id(milestone) -- cgit v1.2.1