From c594a7cefbc5b66aea2014db9063470c806d2c33 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 20 Dec 2024 16:00:34 +0100 Subject: [PATCH] Apply suggestions from code review --- src/MPoly.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MPoly.jl b/src/MPoly.jl index 338d6e44a..8bb557deb 100644 --- a/src/MPoly.jl +++ b/src/MPoly.jl @@ -452,7 +452,7 @@ function content(a::MPolyRingElem{T}) where T <: RingElement end -function is_nilpotent(f::T) where {T<:MPolyRingElem} +function is_nilpotent(f::T) where {T <: MPolyRingElem} is_domain_type(T) && return is_zero(f) return all(is_nilpotent, coefficients(f)) end