Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0e17569

Browse files
author
tungli
committedSep 18, 2020
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

+4-1
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)
Please sign in to comment.