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:
parent
10bf9045a1
commit
b5673a0522
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user