Skip to content

Commit 0d43583

Browse files
committed
Fix rubocop warnings
1 parent d621472 commit 0d43583

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

examples/sax_ractor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Saxtor < Ox::Sax
1919
# and throw it away otherwise.
2020
CYO = Struct.new(:ietf, :globs, :description) do
2121
def initialize(ietf = nil, globs = [], description = nil)
22-
super(ietf, globs, description)
22+
super
2323
end
2424

2525
def to_s # Pretty print

lib/ox/element.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def prepend_child(node)
7979
# - +other+ [Object] Object compare _self_ to.
8080
# *return* [Boolean] true if both Objects are equivalent, otherwise false.
8181
def eql?(other)
82-
return false unless super(other)
82+
return false unless super
8383
return false unless attributes == other.attributes
8484
return false unless nodes == other.nodes
8585

lib/ox/instruct.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def initialize(name)
2323
# - +other+ [Object] Object compare _self_ to.
2424
# *return* [Boolean] true if both Objects are equivalent, otherwise false.
2525
def eql?(other)
26-
return false unless super(other)
26+
return false unless super
2727
return false unless attributes == other.attributes
2828
return false unless content == other.content
2929

ox.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ serialization. }
3838

3939
s.metadata['rubygems_mfa_required'] = 'true'
4040

41-
s.add_runtime_dependency 'bigdecimal', '>= 3.0'
41+
s.add_dependency 'bigdecimal', '>= 3.0'
4242
end

test/parse_cmp.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def node_to_dict(element)
3838

3939
def node_to_array(element)
4040
a = []
41-
element.nodes.each do |n|
41+
element.nodes.map do |n|
4242
a.push(node_to_value(n))
4343
end
4444
a

test/sax/smart_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class ErrorsOnParentNormalElementTest < SaxSmartTest
146146

147147
def initialize(*args)
148148
@w = lambda { |s, ws| "<#{ws}>" + s + "</#{ws}>" }
149-
super(*args)
149+
super
150150
end
151151

152152
def parents_of(el)

0 commit comments

Comments
 (0)