From 12a1c3091cd97fdb7bb63b04362ca63a2644dbe9 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Tue, 10 Oct 2023 20:33:29 +0530 Subject: [PATCH] remove unnecessary inequality change --- src/sparsevector.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsevector.jl b/src/sparsevector.jl index b525ad6c..8cdf7d53 100644 --- a/src/sparsevector.jl +++ b/src/sparsevector.jl @@ -1046,7 +1046,7 @@ function show(io::IO, ::MIME"text/plain", x::AbstractSparseVector) xnnz = length(nzval) print(io, length(x), "-element ", typeof(x), " with ", xnnz, " stored ", xnnz == 1 ? "entry" : "entries") - if xnnz > 0 + if xnnz != 0 println(io, ":") end ioctxt = IOContext(io, :typeinfo => eltype(x))