Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2023-01-25 04:35:08 +0300
committerEvan Read <eread@gitlab.com>2023-01-25 04:35:08 +0300
commit5356dd156556d67ac70af4ca64ac86ab2190a074 (patch)
tree8cfa05b8b405a10ba3b7a796741a2f911d94b54c /lib
parent911830a6ab2fd270880afef8f4735f31b6974bc8 (diff)
Resolve more RuboCop violations
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers/generic.rb2
-rw-r--r--lib/helpers/icons_helper.rb4
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',