Skip to content

Commit c598651

Browse files
authored
Apply suggestions from code review
1 parent 8534795 commit c598651

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/cusparse/helpers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mutable struct CuDenseVectorDescriptor
4141
cusparseCreateDnVec(desc_ref, n, CU_NULL, T)
4242
obj = new(desc_ref[])
4343
finalizer(cusparseDestroyDnVec, obj)
44-
obj
44+
return obj
4545
end
4646

4747
function CuDenseVectorDescriptor(x::DenseCuVector)
@@ -88,7 +88,7 @@ mutable struct CuDenseMatrixDescriptor
8888
end
8989
obj = new(desc_ref[])
9090
finalizer(cusparseDestroyDnMat, obj)
91-
obj
91+
return obj
9292
end
9393

9494
function CuDenseMatrixDescriptor(A::DenseCuMatrix; transposed::Bool=false)

0 commit comments

Comments
 (0)