Skip to content

Commit b1c867f

Browse files
committed
Remove short-circuiting in coefficients(Fun, space)
1 parent 023b1a4 commit b1c867f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Fun.jl

+1-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@ coefficients(f::Fun,msp::Space) = _coefficients(f::Fun,msp::Space)
111111
function _coefficients(f::Fun,msp::Space)
112112
#zero can always be converted
113113
fc = f.coefficients
114-
if ncoefficients(f) == 0 || (ncoefficients(f) == 1 && fc[1] == 0)
115-
convert(Vector, fc)
116-
else
117-
coefficients(fc, space(f), msp)
118-
end
114+
coefficients(coefficients(f), space(f), msp)
119115
end
120116
coefficients(f::Fun,::Type{T}) where {T<:Space} = coefficients(f,T(domain(f)))
121117

0 commit comments

Comments
 (0)