diff --git a/gap/bytable.gi b/gap/bytable.gi index 976424e..2090fae 100644 --- a/gap/bytable.gi +++ b/gap/bytable.gi @@ -411,7 +411,8 @@ InstallOtherMethod(DirectProductOp, # Simple checks if n = 0 then Error("Usage: Cannot take DirectProduct of zero items."); - elif n = 1 then + fi; + if n = 1 then return list[1]; fi; # See if we can handle all objects