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
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2021-02-22 06:54:20 +0300
committerEvan Read <eread@gitlab.com>2021-02-22 06:54:20 +0300
commitcc44d238d852603384ab5b685b277b8414c69ff0 (patch)
tree660e9c9f9f591f19426fcdcb5ee725342a1b6e1a
parent2f5f964604f5c6fd810d0accda255d4c7f45a5d3 (diff)
Avoid build warning
-rw-r--r--lib/helpers/icons_helper.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/helpers/icons_helper.rb b/lib/helpers/icons_helper.rb
index 0f1e1728..b0831d48 100644
--- a/lib/helpers/icons_helper.rb
+++ b/lib/helpers/icons_helper.rb
@@ -8,11 +8,13 @@ module Nanoc::Helpers
ICONS_SVG = '/assets/images/icons.svg' unless const_defined?('ICONS_SVG')
- GITLAB_SVGS_MAPPING = {
- 'bulb' => 'tip',
- 'information-o' => 'note',
- 'warning' => 'caution'
- }.freeze
+ unless const_defined?('GITLAB_SVGS_MAPPING')
+ GITLAB_SVGS_MAPPING = {
+ 'bulb' => 'tip',
+ 'information-o' => 'note',
+ 'warning' => 'caution'
+ }.freeze
+ end
def icon(icon_name, size = nil, css_class = nil)
unless known_sprites.include?(icon_name)