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:
authorAchilleas Pipinellis <axil@gitlab.com>2022-06-09 12:49:14 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-06-09 12:49:14 +0300
commitc40824312771fd7dc367ea883b0d76c5196cef36 (patch)
treea096529378ed12936cb38130c9e15f5dd56137b4
parent0bd38345492d4a66463e6ee630d90f09d1a9a8d5 (diff)
parent25d7c7f9dcd3b0fba7df0e94bcdab5d24430bfb4 (diff)
Merge branch 'eread/fix-double-start-end-with-rubocop-offenses' into 'main'
Fix Performance/DoubleStartEndWith RuboCop offense See merge request gitlab-org/gitlab-docs!2784
-rw-r--r--lib/gitlab/navigation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/navigation.rb b/lib/gitlab/navigation.rb
index 886a6487..fd490588 100644
--- a/lib/gitlab/navigation.rb
+++ b/lib/gitlab/navigation.rb
@@ -61,7 +61,7 @@ module Gitlab
end
def allowed_link?(link)
- link.start_with?('ee/') || link.start_with?('http')
+ link.start_with?('ee/', 'http')
end
def has_active_element?(collection)