Skip to content

Commit

Permalink
style(rubocop): allow intentional use of empty initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Apr 10, 2022
1 parent ba7a28c commit 2af2a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/nokogiri/xml/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class Node
# [Yields] Nokogiri::XML::Node
# [Returns] Nokogiri::XML::Node
#
def initialize(name, document)
def initialize(name, document) # rubocop:disable Style/RedundantInitialize
# This is intentionally empty.
end

Expand Down
2 changes: 1 addition & 1 deletion lib/nokogiri/xml/processing_instruction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Nokogiri
module XML
class ProcessingInstruction < Node
def initialize(document, name, content)
def initialize(document, name, content) # rubocop:disable Style/RedundantInitialize
end
end
end
Expand Down

0 comments on commit 2af2a87

Please sign in to comment.