Skip to content

Commit 1eb5580

Browse files
committed
style(rubocop): allow intentional use of empty initializer
1 parent ba7a28c commit 1eb5580

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/nokogiri/xml/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Node
123123
# [Yields] Nokogiri::XML::Node
124124
# [Returns] Nokogiri::XML::Node
125125
#
126-
def initialize(name, document)
126+
def initialize(name, document) # rubocop:disable Style/RedundantInitialize
127127
# This is intentionally empty.
128128
end
129129

lib/nokogiri/xml/processing_instruction.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Nokogiri
44
module XML
55
class ProcessingInstruction < Node
6-
def initialize(document, name, content)
6+
def initialize(document, name, content) # rubocop:disable Style/RedundantInitialize
77
end
88
end
99
end

0 commit comments

Comments
 (0)