Skip to content

Commit

Permalink
Pass on internal check argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Sep 24, 2024
1 parent e4def6a commit c35f32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AlgebraicGeometry/Schemes/Divisors/WeilDivisor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function WeilDivisor(I::AbsIdealSheaf, R::Ring; check::Bool=true)
D = WeilDivisor(space(I), R)
@check is_equidimensional(I) "ideal sheaf must be equidimensional"
@check dim(space(I)) - dim(I) == 1 "components of a divisor must be of codimension one"
D[I] = one(R)
setindex!(D, one(R), I; check)
return D
end

Expand Down

0 comments on commit c35f32a

Please sign in to comment.