Skip to content

Commit

Permalink
address a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBreuer committed Oct 11, 2024
1 parent 7a20ddf commit 864daad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Groups/GAPGroups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ end
Base.:*(x::GAPGroupElem, y::GAPGroupElem) = _prod(x, y)

function ==(x::GAPGroup, y::GAPGroup)
_check_compatible(x, y; error = false) || throw(ArgumentError("x and y are not compatible"))
_check_compatible(x, y)
return GapObj(x) == GapObj(y)
end

Expand All @@ -382,7 +382,7 @@ end
# in the sense of `_check_compatible`,
# and compare the `GapObj`s if this is the case.
function ==(x::BasicGAPGroupElem, y::BasicGAPGroupElem)
_check_compatible(parent(x), parent(y); error = false) || throw(ArgumentError("parents of x and y are not compatible"))
_check_compatible(parent(x), parent(y))
return GapObj(x) == GapObj(y)
end

Expand Down

0 comments on commit 864daad

Please sign in to comment.