diff options
author | Evan Read <eread@gitlab.com> | 2020-12-17 04:45:52 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2020-12-17 04:46:32 +0300 |
commit | 9e5f97606674033efe10b98ed6aadfa19e3a94b9 (patch) | |
tree | 59b2f7acbd805deffb73454488b0410100edc29f | |
parent | cb4db94a62e51acbff660f465ebad560631afe61 (diff) |
Rename is_omnibus? function for Rubocop rule
-rw-r--r-- | lib/gitlab/navigation.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/symlinks_converter.rb | 2 | ||||
-rw-r--r-- | lib/helpers/generic.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/navigation.rb b/lib/gitlab/navigation.rb index 32071322..25281f9c 100644 --- a/lib/gitlab/navigation.rb +++ b/lib/gitlab/navigation.rb @@ -44,7 +44,7 @@ module Gitlab attr_reader :items, :item def disable_inactive_sections! - return unless is_omnibus? + return unless omnibus? children.each do |section| section.disable! unless has_active_element?([section]) diff --git a/lib/gitlab/symlinks_converter.rb b/lib/gitlab/symlinks_converter.rb index a7cea940..4354a4d3 100644 --- a/lib/gitlab/symlinks_converter.rb +++ b/lib/gitlab/symlinks_converter.rb @@ -12,7 +12,7 @@ module Gitlab end def run - return unless Nanoc::Helpers::Generic.is_omnibus? + return unless Nanoc::Helpers::Generic.omnibus? items.each do |item| id = item.identifier diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb index 5031745d..09c03e80 100644 --- a/lib/helpers/generic.rb +++ b/lib/helpers/generic.rb @@ -9,7 +9,7 @@ module Nanoc::Helpers ENV['NANOC_ENV'] == 'production' end - def is_omnibus? + def omnibus? ENV['NANOC_ENV'] == 'omnibus' end end |