Skip to content

Commit 6a4f12f

Browse files
authored
Change is to === (#11)
* Change is to === `is` is deprecated in Julia 0.6 * Update remaining instances of `is` to ===
1 parent 7375d92 commit 6a4f12f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/gitutils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function mktree(d::Dict)
1919
elseif isa(data, Dict)
2020
sha1 = mktree(data)
2121
lstree *= "040000 tree $sha1\t$name\n"
22-
elseif is(data, nothing)
22+
elseif data === nothing
2323
# ignore it
2424
else
2525
error("mktree: don't know what to do with $name => $data")
@@ -50,14 +50,14 @@ function verify_tree(d::Dict, tree::AbstractString)
5050
end
5151
# check that nothing was missing from tree
5252
for (name, data) in d
53-
@test is(data,nothing) || in(name,seen)
53+
@test data === nothing || in(name,seen)
5454
end
5555
end
5656

5757
function verify_work(d::Dict)
5858
# check what's in d
5959
for (name, data) in d
60-
if is(data, nothing)
60+
if data === nothing
6161
@test !ispath(name)
6262
continue
6363
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ try cd(dir) do
3333
git_setup(states[4:6]...)
3434
throw(nothing)
3535
end catch x
36-
is(x,nothing) || rethrow()
36+
x === nothing || rethrow()
3737
end
3838
git_verify(states[1:3]...)
3939
end

0 commit comments

Comments
 (0)