Skip to content

Commit

Permalink
remove unnecessary exception
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Holters <[email protected]>
  • Loading branch information
wheeheee and martinholters authored Dec 13, 2024
1 parent 789a6ee commit c997670
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/windows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,6 @@ const BoolOr2 = Union{Tuple{Bool, Bool}, Bool}

function matrix_window(func, dims::Tuple{Integer,Integer}, arg::Union{RealOr2,Nothing}=nothing;
padding::IntegerOr2=0, zerophase::BoolOr2=false)
length(dims) == 2 || throw(ArgumentError("`dims` must be length 2"))
paddings = argdup(padding)
zerophases = argdup(zerophase)
if isnothing(arg)
Expand Down

0 comments on commit c997670

Please sign in to comment.