Skip to content

Commit 1f535cf

Browse files
authored
use === for comparisons to nothing
1 parent 8987c26 commit 1f535cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/snooping.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function snoop(package, tomlpath, snoopfile, outputfile, reuse = false)
77
using Pkg, PackageCompiler
88
"""
99

10-
if tomlpath != nothing
10+
if tomlpath !== nothing
1111
command *= """
1212
Pkg.activate($(repr(tomlpath)))
1313
Pkg.instantiate()
@@ -31,11 +31,11 @@ function snoop(package, tomlpath, snoopfile, outputfile, reuse = false)
3131
run_julia(command, compile = "all", O = 0, g = 1, trace_compile = tmp_file)
3232
end
3333
used_packages = Set{String}() # e.g. from test/REQUIRE
34-
if package != nothing
34+
if package !== nothing
3535
push!(used_packages, string(package))
3636
end
3737
usings = ""
38-
if tomlpath != nothing
38+
if tomlpath !== nothing
3939
# add toml packages, in case extract_used_packages misses a package
4040
deps = get(TOML.parsefile(tomlpath), "deps", Dict{String, Any}())
4141
union!(used_packages, string.(keys(deps)))

0 commit comments

Comments
 (0)