Skip to content

Commit

Permalink
Explicitly return
Browse files Browse the repository at this point in the history
Co-authored-by: Will Tebbutt <willtebbutt00@gmail.com>
  • Loading branch information
penelopeysm and willtebbutt authored Oct 3, 2024
1 parent 5107c11 commit 43791ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/MooncakeLogDensityProblemsADExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ end
# Interop with ADTypes.
function getconfig(x::ADTypes.AutoMooncake)
c = x.config
isnothing(c) ? Mooncake.DEFAULT_CONFIG : c
return isnothing(c) ? Mooncake.DEFAULT_CONFIG : c

Check warning on line 64 in ext/MooncakeLogDensityProblemsADExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/MooncakeLogDensityProblemsADExt.jl#L62-L64

Added lines #L62 - L64 were not covered by tests
end
function ADgradient(x::ADTypes.AutoMooncake, ℓ)
debug_mode = getconfig(x).debug_mode

Check warning on line 67 in ext/MooncakeLogDensityProblemsADExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/MooncakeLogDensityProblemsADExt.jl#L67

Added line #L67 was not covered by tests
Expand Down

0 comments on commit 43791ea

Please sign in to comment.