Skip to content

Commit

Permalink
Simplify likely dead branch
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe committed Nov 28, 2024
1 parent 0d00224 commit cc88240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/make_zero.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ end
return y
end
if nf == 0
# nothing to do, assume inactive
return copy_if_inactive ? Base.deepcopy_internal(prev, seen) : prev
return prev
end
flds = Vector{Any}(undef, nf)
for i = 1:nf
Expand Down

0 comments on commit cc88240

Please sign in to comment.