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-02-16 19:24:10 +0300
committerSarah German <sgerman@gitlab.com>2023-02-16 19:24:10 +0300
commitaa3036140ba0e7757ccccae1d324826ecdb8c53f (patch)
tree64b9ea51c85969993b8ba0ec5a338a93115094ad /lib
parent68c926b584ee7d030d1cf0a7ffb2c79aa8b25bf4 (diff)
Fix Style/NegatedIfElseCondition RuboCop offense
Diffstat (limited to 'lib')
-rw-r--r--lib/filters/badges.rb6
-rw-r--r--lib/helpers/blueprints.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/filters/badges.rb b/lib/filters/badges.rb
index bf88f854..9fd8540b 100644
--- a/lib/filters/badges.rb
+++ b/lib/filters/badges.rb
@@ -42,10 +42,10 @@ class BadgesFilter < Nanoc::Filter
end
def generate(tier, type)
- if !type.nil?
- %(<span class="badge-trigger #{tier}-#{type.downcase}"></span>)
- else
+ if type.nil?
%(<span class="badge-trigger #{tier}"></span>)
+ else
+ %(<span class="badge-trigger #{tier}-#{type.downcase}"></span>)
end
end
end
diff --git a/lib/helpers/blueprints.rb b/lib/helpers/blueprints.rb
index 7e3cc7b7..b97c436c 100644
--- a/lib/helpers/blueprints.rb
+++ b/lib/helpers/blueprints.rb
@@ -2,7 +2,7 @@
module Nanoc::Helpers
module Blueprints
- BLUEPRINTS_PATH = '/ee/architecture/blueprints/*/index.md'.freeze
+ BLUEPRINTS_PATH = '/ee/architecture/blueprints/*/index.md'
def all_blueprints
blueprints = @items.find_all(BLUEPRINTS_PATH).sort_by do |i|