Skip to content

Commit a4a340f

Browse files
chunjiwmkitti
authored andcommitted
Fix deduplicate_knots!()
1 parent 2c383dd commit a4a340f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridded/gridded.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ degree(flag::Gridded) = flag.degree
121121
function deduplicate_knots!(knots; move_knots::Bool = false)
122122
last_knot = first(knots)
123123
for i = eachindex(knots)
124-
if i == 1
124+
if i == firstindex(knots)
125125
continue
126126
end
127127
if knots[i] == last_knot || (move_knots && (@inbounds knots[i] <= knots[i-1]))

0 commit comments

Comments
 (0)