Skip to content

Commit ee8b62d

Browse files
Update src/tangent_types/tangent.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9153237 commit ee8b62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tangent_types/tangent.jl

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

5959
function _backing_error(P, G, E)
6060
msg = "Tangent for the primal $P should be backed by a $E type, not by $G."
61-
throw(ArgumentError(msg))
61+
return throw(ArgumentError(msg))
6262
end
6363

6464
function Base.:(==)(a::Tangent{P,T}, b::Tangent{P,T}) where {P,T}

0 commit comments

Comments
 (0)