-
- Downloads
Avoid func declarations using `function` keyword (#2813)
We had only a few function expressions declared with the function keyword; almost everything is using function declarations. This came up after this discussion: https://github.com/badges/shields/pull/2803#discussion_r249011621 though is actually not related ot that example. What’s being removed is a third option, which is assigning to a variable a function expression using the `function` keyword. There’s still room for the programmer to choose between arrow function expressions and function declarations.
Showing
- .eslintrc.yml 1 addition, 0 deletions.eslintrc.yml
- lib/error-helper.js 1 addition, 1 deletionlib/error-helper.js
- services/docker/docker-helpers.js 2 additions, 2 deletionsservices/docker/docker-helpers.js
- services/packagist/packagist-license.service.js 2 additions, 4 deletionsservices/packagist/packagist-license.service.js
- services/pypi/pypi-helpers.js 5 additions, 5 deletionsservices/pypi/pypi-helpers.js
- services/response-fixtures.js 5 additions, 5 deletionsservices/response-fixtures.js
Loading
Please register or sign in to comment