message: Test we remove redundant else when cursor is inside
diff: @@ -71,6 +71,30 @@ describe("Remove Redundant Else", () => {
  } else {
  showMessage();
  }
  +}`
  + }
  + ],
  + [
  + "redundant else when cursor is inside",
  + {
  + code: `function doSomethingIfValid() {
  + if (!isValid) {
  + showWarning();
  + return;
  + } else {
  + doSomething();
  + doAnotherThing();
  + }
  +}`,
  + selection: Selection.cursorAt(3, 3),
  + expected: `function doSomethingIfValid() {
  + if (!isValid) {
  + showWarning();
  + return;
  + }
  +
  + doSomething();
  + doAnotherThing();
  }`
  }
  ]
  