diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 15:07:18 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 15:07:18 +0200 |
commit | c370dce01c95ff3d2cf102f4bdcf8347e3764893 (patch) | |
tree | 8114023b91b681fff51931a76d50a1f3d4297588 /app/helpers | |
parent | 43c35b0f20fb3bb67ea2b96bf8f806c7e95b6aec (diff) | |
download | gitlab-ce-c370dce01c95ff3d2cf102f4bdcf8347e3764893.tar.gz |
Enable Style/RedundantParentheses rubocop coprubocop/enable-redundant-parentheses-cop
See #17478
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/diff_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index ea383f9b0f6..cbe47176831 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -39,11 +39,11 @@ module DiffHelper end def unfold_bottom_class(bottom) - (bottom) ? 'js-unfold-bottom' : '' + bottom ? 'js-unfold-bottom' : '' end def unfold_class(unfold) - (unfold) ? 'unfold js-unfold' : '' + unfold ? 'unfold js-unfold' : '' end def diff_line_content(line, line_type = nil) |