1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fix Rubocop warnings.

git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2022-05-17 21:16:38 +00:00
parent 10bf9045a1
commit b5673a0522
2 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,11 @@ module Redmine
next unless url
next if url.starts_with?("/") || url.starts_with?("#") || !url.include?(':')
scheme = URI.parse(url).scheme rescue nil
scheme = begin
URI.parse(url).scheme
rescue
nil
end
next if scheme.blank?
klass = node["class"].presence

View File

@ -185,6 +185,5 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase
within('.tribute-container') do
assert page.has_text? "Dave Lopper"
end
end
end