Skip to content

Commit

Permalink
on empty peaks: type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tungli committed Sep 18, 2020
1 parent 3aaa850 commit 0e17569
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/findpeaks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ Macro specific to findpeaks function."
macro on_empty_return(peaks, x)
quote
if isempty($(esc(peaks)))
return (empty($(esc(x))), empty($(esc(x)), PeakInfo))
return (
empty($(esc(x)), Tuple{eltype($(esc(x)))}),
empty($(esc(x)), PeakInfo)
)
end
end
end
Expand Down

0 comments on commit 0e17569

Please sign in to comment.