Skip to content

Commit 1f76852

Browse files
committed
update comparison to nothing
1 parent e17a185 commit 1f76852

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functionmap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
function At_mul_B!(y::AbstractVector, A::FunctionMap, x::AbstractVector)
5858
issymmetric(A) && return A_mul_B!(y, A, x)
5959
(length(x) == A.M && length(y) == A.N) || throw(DimensionMismatch())
60-
if A.fc != nothing
60+
if A.fc !== nothing
6161
if !isreal(A)
6262
x = conj(x)
6363
end
@@ -74,7 +74,7 @@ end
7474
function Ac_mul_B!(y::AbstractVector, A::FunctionMap, x::AbstractVector)
7575
ishermitian(A) && return A_mul_B!(y, A, x)
7676
(length(x) == A.M && length(y) == A.N) || throw(DimensionMismatch())
77-
if A.fc != nothing
77+
if A.fc !== nothing
7878
return (ismutating(A) ? A.fc(y, x) : copyto!(y, A.fc(x)))
7979
else
8080
error("adjoint not implemented for $A")

0 commit comments

Comments
 (0)