Skip to content

Commit ddf3210

Browse files
authored
Merge pull request #275 from gjtorikian/fix-warnings
Set instrumentation name
2 parents ac496a3 + 7d9db3d commit ddf3210

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/html/pipeline.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def self.parse(document_or_html)
6969
# Public: String name for this Pipeline. Defaults to Class name.
7070
attr_writer :instrumentation_name
7171
def instrumentation_name
72-
@instrumentation_name || self.class.name
72+
return @instrumentation_name if defined?(@instrumentation_name)
73+
@instrumentation_name = self.class.name
7374
end
7475

7576
class << self

0 commit comments

Comments
 (0)