lint: Changeset.js curly braces in correct position

This commit is contained in:
John McLear 2021-02-17 16:02:10 +00:00
parent 23d7544763
commit 0b78ad2f90

View file

@ -2016,21 +2016,19 @@ exports.follow = (cs1, cs2, reverseInsertOrder, pool) => {
whichToDo = 1; whichToDo = 1;
} else if (insertFirst2 && !insertFirst1) { } else if (insertFirst2 && !insertFirst1) {
whichToDo = 2; whichToDo = 2;
} } else if (firstChar1 === '\n' && firstChar2 !== '\n') {
// insert string that doesn't start with a newline first so as not to break up lines // insert string that doesn't start with a newline first so as not to break up lines
else if (firstChar1 == '\n' && firstChar2 != '\n') {
whichToDo = 2; whichToDo = 2;
} else if (firstChar1 != '\n' && firstChar2 == '\n') { } else if (firstChar1 !== '\n' && firstChar2 === '\n') {
whichToDo = 1; whichToDo = 1;
} } else if (reverseInsertOrder) {
// break symmetry: // break symmetry:
else if (reverseInsertOrder) {
whichToDo = 2; whichToDo = 2;
} else { } else {
whichToDo = 1; whichToDo = 1;
} }
} }
if (whichToDo == 1) { if (whichToDo === 1) {
chars1.skip(op1.chars); chars1.skip(op1.chars);
opOut.opcode = '='; opOut.opcode = '=';
opOut.lines = op1.lines; opOut.lines = op1.lines;