diff options
author | Evan Read <eread@gitlab.com> | 2022-06-09 08:04:38 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-06-09 08:04:38 +0300 |
commit | 25d7c7f9dcd3b0fba7df0e94bcdab5d24430bfb4 (patch) | |
tree | 23a96847c5caffd28e93c3474f766fbb8d71eede | |
parent | 94853638d4f4861af9d83cdcfa4dfb4274b16591 (diff) |
Fix Performance/DoubleStartEndWith RuboCop offense
-rw-r--r-- | lib/gitlab/navigation.rb | 2 |
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) |