Skip to content

Commit

Permalink
Removed extraneous operator in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Feb 28, 2024
1 parent f4aee15 commit 7694414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function check_element_count(f, Q::Type{QuadraticForm{X,Y,Z}}, data) where {X,Y,
end

function check_element_count(f, Q::Type{QuadraticForm{X,Y,Z}}, L, data) where {X,Y,Z}
@assert L isa Int || "Length type parameter must be an Int (got $(typeof(L)))."
@assert L == f(Q) || "Length type parameter must equal $(f(Q)) (got $L)."
@assert L isa Int "Length type parameter must be an Int (got $(typeof(L)))."
@assert L == f(Q) "Length type parameter must equal $(f(Q)) (got $L)."
check_element_count(f, Q, data)
end

0 comments on commit 7694414

Please sign in to comment.