Skip to content

Commit 3c534de

Browse files
committed
Use isa Nothing instead of === nothing
1 parent 3a747d2 commit 3c534de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ end
391391

392392
function _checked_rrule(f, args...; kwargs...)
393393
r = rrule(f, args...; kwargs...)
394-
r === nothing && _throw_checked_rrule_error(f, args...; kwargs...)
394+
r isa Nothing && _throw_checked_rrule_error(f, args...; kwargs...)
395395
return r
396396
end
397397

0 commit comments

Comments
 (0)