From 0129f346ee7fe0d89c0b80b04afebe2c4faf4dc9 Mon Sep 17 00:00:00 2001 From: connorshea Date: Tue, 15 Mar 2016 10:42:16 -0600 Subject: [PATCH] Remove parentheses from if statement Otherwise Rubocop will give a warning. As mentioned in !3197. --- app/services/git_push_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 4313de0ccab..d840ab5e340 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -89,7 +89,7 @@ class GitPushService < BaseService project.change_head(branch_name) # Set protection on the default branch if configured - if (current_application_settings.default_branch_protection != PROTECTION_NONE) + if current_application_settings.default_branch_protection != PROTECTION_NONE developers_can_push = current_application_settings.default_branch_protection == PROTECTION_DEV_CAN_PUSH ? true : false @project.protected_branches.create({ name: @project.default_branch, developers_can_push: developers_can_push }) end