summaryrefslogtreecommitdiff
path: root/app/services/git_push_service.rb
diff options
context:
space:
mode:
authorconnorshea <connor.james.shea@gmail.com>2016-03-15 10:42:16 -0600
committerconnorshea <connor.james.shea@gmail.com>2016-03-15 10:42:16 -0600
commit0129f346ee7fe0d89c0b80b04afebe2c4faf4dc9 (patch)
tree73728e3320bfee7f267cc1dc4559a40cd3725966 /app/services/git_push_service.rb
parent178c80a561fa10a157bae6e5d4682b232ae727c7 (diff)
downloadgitlab-ce-0129f346ee7fe0d89c0b80b04afebe2c4faf4dc9.tar.gz
Remove parentheses from if statement
Otherwise Rubocop will give a warning. As mentioned in !3197.
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r--app/services/git_push_service.rb2
1 files changed, 1 insertions, 1 deletions
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