Skip to content

Commit 07eff8d

Browse files
committed
feat(taskList): cleanup
1 parent 15870be commit 07eff8d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app-src/scripts/task-list/task-list-d.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,7 @@
426426
}
427427

428428
static moveItem(array, oldIndex, newIndex) {
429-
if (newIndex >= array.length) {
430-
let k = newIndex - array.length;
431-
while ((k--) + 1) {
432-
array.push(undefined);
433-
}
434-
}
435429
array.splice(newIndex, 0, array.splice(oldIndex, 1)[0]);
436-
return array; // for testing purposes
437430
}
438431
}
439432

0 commit comments

Comments
 (0)