mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 01:18:57 +02:00
Fix Rubocop warnings.
git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -185,6 +185,5 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase
|
||||
within('.tribute-container') do
|
||||
assert page.has_text? "Dave Lopper"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user