Skip to content

Commit

Permalink
Fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Dec 25, 2024
1 parent d621472 commit 0d43583
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/sax_ractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Saxtor < Ox::Sax
# and throw it away otherwise.
CYO = Struct.new(:ietf, :globs, :description) do
def initialize(ietf = nil, globs = [], description = nil)
super(ietf, globs, description)
super
end

def to_s # Pretty print
Expand Down
2 changes: 1 addition & 1 deletion lib/ox/element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def prepend_child(node)
# - +other+ [Object] Object compare _self_ to.
# *return* [Boolean] true if both Objects are equivalent, otherwise false.
def eql?(other)
return false unless super(other)
return false unless super
return false unless attributes == other.attributes
return false unless nodes == other.nodes

Expand Down
2 changes: 1 addition & 1 deletion lib/ox/instruct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(name)
# - +other+ [Object] Object compare _self_ to.
# *return* [Boolean] true if both Objects are equivalent, otherwise false.
def eql?(other)
return false unless super(other)
return false unless super
return false unless attributes == other.attributes
return false unless content == other.content

Expand Down
2 changes: 1 addition & 1 deletion ox.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ serialization. }

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

s.add_runtime_dependency 'bigdecimal', '>= 3.0'
s.add_dependency 'bigdecimal', '>= 3.0'
end
2 changes: 1 addition & 1 deletion test/parse_cmp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def node_to_dict(element)

def node_to_array(element)
a = []
element.nodes.each do |n|
element.nodes.map do |n|
a.push(node_to_value(n))
end
a
Expand Down
2 changes: 1 addition & 1 deletion test/sax/smart_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ErrorsOnParentNormalElementTest < SaxSmartTest

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

def parents_of(el)
Expand Down

0 comments on commit 0d43583

Please sign in to comment.