Keep arrow when both parameter list and block of function literal are empty by paul-dingemans · Pull Request #2469 · ktlint/ktlint (original) (raw)

Description

Keep arrow when both parameter list and block of function literal are empty

Removal of the arrow in this case would lead to a compilation error as the function literal is changed to a normal block when removing the arrow.

Closes #2465

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

Documentation is updated. See difference between snapshot and release documentation