Skip to content

Commit f299b67

Browse files
committed
require dependency for SanitizationFilter
1 parent 334188f commit f299b67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/html/pipeline/sanitization_filter.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
begin
2-
require "sanitize"
3-
rescue LoadError => _
4-
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
5-
end
1+
HTML::Pipeline.require_dependency("sanitize", "SanitizationFilter")
62

73
module HTML
84
class Pipeline

0 commit comments

Comments
 (0)