diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-30 15:06:06 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-20 15:24:39 +0300 |
commit | 07be5943788fe0b672e8c6bea6859582cbdd3d11 (patch) | |
tree | 492f5464abe2ff476f47f183833ec722dabd981c /lib/banzai | |
parent | 79b02e40e5842540ceff4454f6c2c51f13fc081c (diff) |
Enable Style/MultilineTernaryOperator rubocop cop
Avoid multi-line ?: (the ternary operator). Use if/unless instead.
See #17478
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/relative_link_filter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/banzai/filter/relative_link_filter.rb b/lib/banzai/filter/relative_link_filter.rb index c78da404607..21ed0410f7f 100644 --- a/lib/banzai/filter/relative_link_filter.rb +++ b/lib/banzai/filter/relative_link_filter.rb @@ -112,8 +112,7 @@ module Banzai end def current_commit - @current_commit ||= context[:commit] || - ref ? repository.commit(ref) : repository.head_commit + @current_commit ||= context[:commit] || ref ? repository.commit(ref) : repository.head_commit end def relative_url_root |