Auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour
43
stars
11
forks
source link
fix: don't erase static modifier when auto-fixing static methods #30
Closed
mitchell-merry closed 4 months ago
Description (What)
Added a check to see if the the function we are changing has the static modifier, and if so, retain it.
Before, it would try to fix methods like:
by doing:
Now it does:
Justification (Why)
This is broken, now this is fixed
How Can This Be Tested?
Unit tests.