Skip to content

Commit e3e6ea3

Browse files
committed
remove isempty test
1 parent ac1db88 commit e3e6ea3

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/b-splines/b-splines.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ function BSplineInterpolation(::Type{TWeights}, A::AbstractArray{Tel,N}, ::IT, :
2525
for _ in 2:N
2626
c *= c
2727
end
28-
if isempty(A)
29-
T = Base.promote_op(*, typeof(c), Tel)
30-
else
31-
T = typeof(c*first(A))
32-
end
28+
T = typeof(c*first(A))
3329
BSplineInterpolation{T,N,typeof(A),IT,GT,pad}(A)
3430
end
3531

src/gridded/gridded.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ function GriddedInterpolation(::Type{TWeights}, knots::NTuple{N,GridIndex}, A::A
2828
for _ in 2:N
2929
c *= c
3030
end
31-
if isempty(A)
32-
T = Base.promote_op(*, typeof(c), Tel)
33-
else
34-
T = typeof(c*first(A))
35-
end
31+
T = typeof(c*first(A))
3632
GriddedInterpolation{T,N,TCoefs,IT,typeof(knts),pad}(knts, A)
3733
end
3834

0 commit comments

Comments
 (0)