Browse Source

Fix Rubocop warnings.



git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Marius Balteanu 2 years ago
parent
commit
b5673a0522

+ 5
- 1
lib/redmine/wiki_formatting/common_mark/external_links_filter.rb 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

+ 0
- 1
test/system/inline_autocomplete_test.rb View File

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

end
end

Loading…
Cancel
Save