Created by: x4d3
Goal of the PR
The goal of this PR is to simplify the ensureSlash method in react-scripts/config/paths.js
as the needsSlash
parameter was never used.
Maybe if you need a function that ensures a trailing slash and one that always removes the trailing slash, it would be better to have 2 functions instead of passing a boolean.
Testing
This method is quite small, I would suggest to test it directly.