From 2af2a87985290673e4aeb93746a0d638f417060b Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sun, 10 Apr 2022 12:30:55 -0400 Subject: [PATCH] style(rubocop): allow intentional use of empty initializer --- lib/nokogiri/xml/node.rb | 2 +- lib/nokogiri/xml/processing_instruction.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nokogiri/xml/node.rb b/lib/nokogiri/xml/node.rb index 59bb2da2240..09b12788b48 100644 --- a/lib/nokogiri/xml/node.rb +++ b/lib/nokogiri/xml/node.rb @@ -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 diff --git a/lib/nokogiri/xml/processing_instruction.rb b/lib/nokogiri/xml/processing_instruction.rb index 3865037d436..8e5c19d9738 100644 --- a/lib/nokogiri/xml/processing_instruction.rb +++ b/lib/nokogiri/xml/processing_instruction.rb @@ -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