Skip to content

Commit f5451bb

Browse files
committed
[PERF] collaborative: remove useless destructuring
Avoid useless object copies Reported by PIVI closes #6138 Task: 4736986 Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com> Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
1 parent 4b6a03c commit f5451bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collaborative/ot/ot_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function transformZone<Z extends Zone | UnboundedZone>(
2121
executed.quantity
2222
);
2323
}
24-
return { ...zone };
24+
return zone;
2525
}
2626

2727
export function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined {

0 commit comments

Comments
 (0)