Skip to content

Commit d324882

Browse files
committed
lint: Use spread operator instead of .apply()
1 parent ecc970e commit d324882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/static/js/Changeset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ exports.textLinesMutator = (lines) => {
572572
* @param {Array} s curSplice
573573
*/
574574
const lines_applySplice = (s) => {
575-
lines.splice.apply(lines, s);
575+
lines.splice(...s);
576576
};
577577

578578
const lines_toSource = () => lines.toSource();

0 commit comments

Comments
 (0)