diff --git a/src/GroupRings.jl b/src/GroupRings.jl index 5d62b8f..d781f59 100644 --- a/src/GroupRings.jl +++ b/src/GroupRings.jl @@ -189,9 +189,8 @@ function setindex!(X::GroupRingElem, value, g::GroupElem) typeof(g) == elem_type(RG.group) || throw("$g is not an element of $(RG.group)") if !(g in keys(RG.basis_dict)) g = (RG.group)(g) - else - X.coeffs[RG.basis_dict[g]] = value end + X.coeffs[RG.basis_dict[g]] = value end Base.size(X::GroupRingElem) = size(X.coeffs)