fix: improve code quality

This commit is contained in:
2026-08-31 16:59:58 +02:00
parent eead8b558a
commit 5f6e034dac
+2 -3
View File
@@ -95,10 +95,9 @@
const before = array.value.slice( 0, movingIdx.value );
const after = array.value.slice( movingIdx.value + 1 );
const el = array.value[ movingIdx.value ]!;
const arr = before.concat( after );
arr.splice( movingCurrentIdx.value, 0, el );
array.value = arr;
array.value = before.concat( after );
array.value.splice( movingCurrentIdx.value, 0, el );
movingIdx.value = -1;
movingCurrentIdx.value = -1;