diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-10-10 17:56:04 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-10 17:56:04 +0300 |
commit | 47d19c2de1df14bb3ab00d051be8e4f19f4ed7c4 (patch) | |
tree | a937896d47c846185e397528bdd6fa3e64ae78b9 /app/services/quick_actions | |
parent | 900dd7fa93ee9de3de767aa4bf5baca7e9f83348 (diff) |
Stop using `branch_names.include?` and use `branch_exists?`
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r-- | app/services/quick_actions/interpret_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb index a077b3584b0..955d934838b 100644 --- a/app/services/quick_actions/interpret_service.rb +++ b/app/services/quick_actions/interpret_service.rb @@ -458,7 +458,7 @@ module QuickActions target_branch_param.strip end command :target_branch do |branch_name| - @updates[:target_branch] = branch_name if project.repository.branch_names.include?(branch_name) + @updates[:target_branch] = branch_name if project.repository.branch_exists?(branch_name) end desc 'Move issue from one column of the board to another' |