graypegg / chromatism

:rainbow: A simple set of utility functions for colours.
1.78k stars 37 forks source link

Kale Automated Fixes [ Remove return in single expression arrow functions ] #46

Open DomAmato opened 5 years ago

DomAmato commented 5 years ago

Our automated tool found some changes for simplifying things using one of the added ES6 features.

For an arrow function, it replaced the curly braces and return statement with a direct value or expression. Should help compact the code and reducing nesting

cos commented 5 years ago

@toish, when you get a chance, can you have a look at this PR?