syntax icon indicating copy to clipboard operation
syntax copied to clipboard

[printer] extra new line in block expr item with attributes

Open IwanKaramazow opened this issue 4 years ago • 0 comments

input

Promise.all2(namePromise, descriptionPromise)
->Promise.get(a => {
    let (nameSet, descriptionSet) = a;
    @warning("-4")
    switch (nameSet, descriptionSet) {
    | (Ok (), Ok ()) =>
      reloadUser(true);
      setThreeBoxState(_ => DefaultView(Saved));
    | _ =>
      setThreeBoxState(_ => DefaultView(FailedToSave))
    }
  });

output

Promise.all2(namePromise, descriptionPromise)->Promise.get(a => {
  let (nameSet, descriptionSet) = a

  @warning("-4")
  switch (nameSet, descriptionSet) {
  | (Ok(), Ok()) =>
    reloadUser(true)
    setThreeBoxState(_ => DefaultView(Saved))
  | _ => setThreeBoxState(_ => DefaultView(FailedToSave))
  }
})

IwanKaramazow avatar Jan 14 '21 07:01 IwanKaramazow