Skip to content

Commit

Permalink
lint: Use spread operator instead of .apply()
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Sep 26, 2021
1 parent becf7d4 commit a2bd499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/js/Changeset.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ exports.textLinesMutator = (lines) => {
* @param {Array} s curSplice
*/
const lines_applySplice = (s) => {
lines.splice.apply(lines, s);
lines.splice(...s);
};

const lines_toSource = () => lines.toSource();
Expand Down

0 comments on commit a2bd499

Please sign in to comment.