Skip to content

Commit 9346b08

Browse files
committed
Remove exception handling
Turns out at this point nothing will cause this exception.
1 parent bd60091 commit 9346b08

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

lib/indieweb/endpoints/parser.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def matches(identifier, node_names: ["link"])
2222
results.sort!
2323

2424
results
25-
rescue Addressable::URI::InvalidURIError => e
26-
raise InvalidURIError, e
2725
end
2826

2927
# @param (see #matches)

spec/lib/indieweb/endpoints_get_spec.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,6 @@
376376
end
377377
end
378378

379-
context "when the `link` element references an invalid URL" do
380-
let(:url) { "https://example.com/link_element/invalid_href" }
381-
382-
it "raises an IndieWeb::Endpoints::InvalidURIError" do
383-
stub_request(:get, url).to_return(response)
384-
385-
expect { described_class.get(url) }.to raise_error(IndieWeb::Endpoints::InvalidURIError)
386-
end
387-
end
388-
389379
context "when the `link` element references a URL with a fragment" do
390380
it_behaves_like "a Hash of endpoints" do
391381
let(:url) { "https://example.com/link_element_fragment" }

spec/support/fixtures/example_com_link_element_invalid_href.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)