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:
authorMarcel Amirault <mamirault@gitlab.com>2021-02-22 07:20:39 +0300
committerMarcel Amirault <mamirault@gitlab.com>2021-02-22 07:20:39 +0300
commit4f64b341874ea968ee16811ab5b99d857a5a170a (patch)
tree660e9c9f9f591f19426fcdcb5ee725342a1b6e1a
parent2f5f964604f5c6fd810d0accda255d4c7f45a5d3 (diff)
parentcc44d238d852603384ab5b685b277b8414c69ff0 (diff)
Merge branch 'eread/avoid-build-warning' into 'master'
Avoid build warning See merge request gitlab-org/gitlab-docs!1550
-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)