Skip to content

Commit b5673a0

Browse files
Fix Rubocop warnings.
git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 10bf904 commit b5673a0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/redmine/wiki_formatting/common_mark/external_links_filter.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def call
3131
next unless url
3232
next if url.starts_with?("/") || url.starts_with?("#") || !url.include?(':')
3333

34-
scheme = URI.parse(url).scheme rescue nil
34+
scheme = begin
35+
URI.parse(url).scheme
36+
rescue
37+
nil
38+
end
3539
next if scheme.blank?
3640

3741
klass = node["class"].presence

test/system/inline_autocomplete_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,5 @@ def test_inline_autocomplete_for_users_should_work_after_status_change
185185
within('.tribute-container') do
186186
assert page.has_text? "Dave Lopper"
187187
end
188-
189188
end
190189
end

0 commit comments

Comments
 (0)