Skip to content

Commit 9c87482

Browse files
committed
fix(crystal): fix ameba warnings
1 parent 1f7f0a3 commit 9c87482

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,16 @@
270270
{{/vars}}
271271
# Checks equality by comparing each attribute.
272272
# @param [Object] Object to be compared
273-
def ==(o)
274-
return true if self.same?(o)
275-
self.class == o.class{{#vars}} &&
276-
{{name}} == o.{{name}}{{/vars}}{{#parent}} && super(o){{/parent}}
273+
def ==(other)
274+
return true if self.same?(other)
275+
self.class == other.class{{#vars}} &&
276+
{{name}} == other.{{name}}{{/vars}}{{#parent}} && super(other){{/parent}}
277277
end
278278

279279
# @see the `==` method
280280
# @param [Object] Object to be compared
281-
def eql?(o)
282-
self == o
281+
def eql?(other)
282+
self == other
283283
end
284284

285285
# Calculates hash code according to all attributes.

0 commit comments

Comments
 (0)