diff --git a/src/DirectProducts.jl b/src/DirectProducts.jl index fcbda58..8bac17f 100644 --- a/src/DirectProducts.jl +++ b/src/DirectProducts.jl @@ -143,7 +143,6 @@ doc""" > Checks if two direct product group elements are the same. """ function (==)(g::DirectProductGroupElem, h::DirectProductGroupElem) - parent(g) == parent(h) || return false g.elts == h.elts || return false return true end diff --git a/src/WreathProducts.jl b/src/WreathProducts.jl index 56d2a07..1b02ed5 100644 --- a/src/WreathProducts.jl +++ b/src/WreathProducts.jl @@ -163,7 +163,6 @@ function (==)(G::WreathProduct, H::WreathProduct) end function (==)(g::WreathProductElem, h::WreathProductElem) - parent(g) == parent(h) || return false g.n == h.n || return false g.p == h.p || return false return true