diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-08 10:41:27 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-08 13:43:55 +0300 |
commit | 947c09c2a6f8cc9c4b3606efb326aa4912095e7d (patch) | |
tree | 525e28346942d9bd857a9d17dc671243ea9d360f /app/workers/new_issue_worker.rb | |
parent | 9e7ac48bc11141762816f157247baaf9e61618b3 (diff) |
Simplify checking if objects exist code in new issaubles workers
Diffstat (limited to 'app/workers/new_issue_worker.rb')
-rw-r--r-- | app/workers/new_issue_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/new_issue_worker.rb b/app/workers/new_issue_worker.rb index 19a778ad522..d9a8e892e90 100644 --- a/app/workers/new_issue_worker.rb +++ b/app/workers/new_issue_worker.rb @@ -4,7 +4,7 @@ class NewIssueWorker include NewIssuable def perform(issue_id, user_id) - return unless ensure_objects_found(issue_id, user_id) + return unless objects_found?(issue_id, user_id) EventCreateService.new.open_issue(issuable, user) NotificationService.new.new_issue(issuable, user) |