Skip to content

Commit b08776a

Browse files
type fix
1 parent 75456eb commit b08776a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ReusableFunctions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function maker3function(f::Function, dirname::AbstractString; ignore_keywords::A
132132
filename = length(kw) > 0 ? gethashfilename(dirname, (x, kw)) : gethashfilename(dirname, x)
133133
result = loadresultfile(filename)
134134
!quiet && (@show filename; @show x; @show result)
135-
if result == nothing
135+
if result === nothing
136136
result = f(x...; kw..., kwx...)
137137
saveresultfile(filename, result, x)
138138
else
@@ -168,7 +168,7 @@ function maker3function(f::Function, dirname::AbstractString, paramkeys::Vector,
168168
end
169169
vecresult = loadresultfile(filename; key=resultkey)
170170
!quiet && (@show filename; @show x; @show vecresult)
171-
if vecresult != nothing
171+
if vecresult !== nothing
172172
if length(vecresult) != length(resultkeys)
173173
throw("The length of 'resultkeys' does not match the length of the result stored in the file $(filename)")
174174
end
@@ -198,7 +198,7 @@ function maker3function(f::Function, dirname::AbstractString, paramkeys::Vector,
198198
filename = gethashfilename(dirname, x)
199199
vecresult = loadresultfile(filename; key=resultkey)
200200
!quiet && (@show filename; @show x; @show vecresult)
201-
if vecresult != nothing
201+
if vecresult !== nothing
202202
if length(vecresult) != length(resultkeys)
203203
throw("The length of 'resultkeys' does not match the length of the result stored in the file $(filename)")
204204
end

0 commit comments

Comments
 (0)