Skip to content

Commit

Permalink
Apply Hulpke's suggestion on checking for nilpotency carefully
Browse files Browse the repository at this point in the history
Also fix an indentation.
  • Loading branch information
hungaborhorvath committed Nov 4, 2016
1 parent ca04199 commit bc47381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/grp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -4678,7 +4678,7 @@ InstallMethod( MinimalNormalSubgroups,
# should have and IsSolvable check, as well,
# but methods for solvable groups are only in CRISP
# which aggeressively checks for solvability, anyway
if IsNilpotentGroup(G) then
if (not HasIsNilpotentGroup(G) and IsNilpotentGroup(G)) then
return MinimalNormalSubgroups( G );
fi;

Expand Down
2 changes: 1 addition & 1 deletion lib/grplatt.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ local n,i,s;
# should have and IsSolvable check, as well,
# but methods for solvable groups are only in CRISP
# which aggeressively checks for solvability, anyway
if IsNilpotentGroup(G) then
if (not HasIsNilpotentGroup(G) and IsNilpotentGroup(G)) then
return Socle(G);
fi;

Expand Down

0 comments on commit bc47381

Please sign in to comment.