Skip to content

Commit 65e006a

Browse files
committed
don't use isnothing
1 parent 08d6b9f commit 65e006a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ getjobstate = jobid -> begin
1919
cmd = Cmd(`scontrol show jobid=$jobid`, ignorestatus=true)
2020
info = read(cmd, String)
2121
state = match(r"JobState=(\S*)", info)
22-
return isnothing(state) ? nothing : state.captures[1]
22+
return state === nothing ? nothing : state.captures[1]
2323
end
2424

2525
# wait for job to complete

0 commit comments

Comments
 (0)