Commit d2971491 authored by charlie ablett's avatar charlie ablett

Merge branch 'ajk-static-eq' into 'master'

StaticModel equality simplification

See merge request gitlab-org/gitlab!31948
parents b94dac6a 7cf10ebc
...@@ -40,10 +40,6 @@ module StaticModel ...@@ -40,10 +40,6 @@ module StaticModel
end end
def ==(other) def ==(other)
if other.is_a? ::StaticModel other.present? && other.is_a?(self.class) && id == other.id
id == other.id
else
super
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment