Skip to content

Commit

Permalink
use haskey rather than key iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rayegun committed Aug 4, 2022
1 parent 9a9de5c commit ea193df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solvers/cholmod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ macro cholmod_param(kwarg, code)
end

function getcommon()
if :cholmod_common keys(task_local_storage()) # havent yet started cholmod on this task
if !haskey(task_local_storage(), :cholmod_common) # havent yet started cholmod on this task
common = finalizer(cholmod_l_finish, Ref(cholmod_common()))
result = cholmod_l_start(common)
@assert result == TRUE "failed to run `cholmod_l_start`!"
Expand Down

0 comments on commit ea193df

Please sign in to comment.