Skip to content

Commit

Permalink
throw
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu committed Sep 28, 2023
1 parent 096b9d6 commit 648eaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcsr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ end

function deletecolumn!(mpcsc::MappedPackedCSC{K,L,T}, col::L) where {K,L,T}
col_pos, col_key = find(mpcsc.col_keys, col)
col_key != col && throws(ArgumentError("column $(col) does not exist."))
col_key != col && throw(ArgumentError("column $(col) does not exist."))
mpcsc.col_keys[col_pos] = nothing
deletepartition!(mpcsc.pcsc, col_pos)
return true
Expand Down

0 comments on commit 648eaa4

Please sign in to comment.