diff options
author | Evan Read <eread@gitlab.com> | 2023-01-25 04:35:08 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2023-01-25 04:35:08 +0300 |
commit | 5356dd156556d67ac70af4ca64ac86ab2190a074 (patch) | |
tree | 8cfa05b8b405a10ba3b7a796741a2f911d94b54c /lib | |
parent | 911830a6ab2fd270880afef8f4735f31b6974bc8 (diff) |
Resolve more RuboCop violations
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers/generic.rb | 2 | ||||
-rw-r--r-- | lib/helpers/icons_helper.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb index 1f7a091c..6fa5fe5f 100644 --- a/lib/helpers/generic.rb +++ b/lib/helpers/generic.rb @@ -44,7 +44,7 @@ module Nanoc::Helpers # don't want to render in one of the upstream products. # def gitlab_docs_or_local? - ENV['CI_PROJECT_NAME'] == 'gitlab-docs' or ENV['CI_PROJECT_NAME'].nil? + ENV['CI_PROJECT_NAME'] == 'gitlab-docs' || ENV['CI_PROJECT_NAME'].nil? end # diff --git a/lib/helpers/icons_helper.rb b/lib/helpers/icons_helper.rb index b0831d48..3d1c8e95 100644 --- a/lib/helpers/icons_helper.rb +++ b/lib/helpers/icons_helper.rb @@ -6,9 +6,9 @@ module Nanoc::Helpers module IconsHelper extend self - ICONS_SVG = '/assets/images/icons.svg' unless const_defined?('ICONS_SVG') + ICONS_SVG = '/assets/images/icons.svg' unless const_defined?(:ICONS_SVG) - unless const_defined?('GITLAB_SVGS_MAPPING') + unless const_defined?(:GITLAB_SVGS_MAPPING) GITLAB_SVGS_MAPPING = { 'bulb' => 'tip', 'information-o' => 'note', |