coapjs / node-coap

CoAP - Node.js style
MIT License
531 stars 154 forks source link

refactor: replace unneeded `function` statements with arrow functions #275

Closed JKRhb closed 2 years ago

JKRhb commented 2 years ago

This PR should make the codebase a bit more concise by getting rid of most of the function statements which are no longer necessary due to the addition of error functions.

An exception to this are the function statements used in the mocha tests as passing arrow functions to mocha is discouraged.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1273190385


Totals Coverage Status
Change from base Build 1273030553: -0.01%
Covered Lines: 1077
Relevant Lines: 1168

💛 - Coveralls