Skip to content

Commit 67b53f1

Browse files
authored
Merge pull request #176 from musm/patch-1
use === for comparisons to nothing
2 parents 8987c26 + fe7c103 commit 67b53f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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)))

src/system_image.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function compile_system_image(sysimg_path, cpu_target = nothing; debug = false)
1717
# At some point, I will need to understand build_object a bit better before doing that move, though!
1818
julia_cmd = Base.julia_cmd()
1919
julia = julia_cmd.exec[1]
20-
cpu_target = if cpu_target == nothing
20+
cpu_target = if cpu_target === nothing
2121
replace(julia_cmd.exec[2], "-C" => "")
2222
else
2323
cpu_target

0 commit comments

Comments
 (0)