Skip to content

Commit cc7b906

Browse files
formatting
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 239a329 commit cc7b906

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tangent_types/tangent.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ function Base.show(io::IO, tangent::Tangent{P}) where {P}
9696
end
9797
end
9898

99-
Base.iszero(::Tangent{<:, NamedTuple{}}) = true
100-
Base.iszero(::Tangent{<:, Tuple{}}) = true
99+
Base.iszero(::Tangent{<:,NamedTuple{}}) = true
100+
Base.iszero(::Tangent{<:,Tuple{}}) = true
101101
Base.iszero(t::Tangent) = all(iszero, backing(t))
102102

103103
Base.first(tangent::Tangent{P,T}) where {P,T<:Union{Tuple,NamedTuple}} = first(backing(canonicalize(tangent)))

test/tangent_types/tangent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ end
376376
@test iszero(Tangent{Foo}(; y=0.0))
377377
@test iszero(Tangent{Foo}(; x=Tangent{Tuple{}}(), y=0.0))
378378

379-
@test !iszero(Tangent{Foo}(;y=3.0))
379+
@test !iszero(Tangent{Foo}(; y=3.0))
380380
end
381381

382382
@testset "show" begin

0 commit comments

Comments
 (0)