Skip to content

Commit 0e17569

Browse files
author
tungli
committed
on empty peaks: type fix
1 parent 3aaa850 commit 0e17569

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/findpeaks.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ Macro specific to findpeaks function."
2525
macro on_empty_return(peaks, x)
2626
quote
2727
if isempty($(esc(peaks)))
28-
return (empty($(esc(x))), empty($(esc(x)), PeakInfo))
28+
return (
29+
empty($(esc(x)), Tuple{eltype($(esc(x)))}),
30+
empty($(esc(x)), PeakInfo)
31+
)
2932
end
3033
end
3134
end

0 commit comments

Comments
 (0)