coapjs / node-coap

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

refactor: replace `that` with `this` by using arrow functions #274

Closed JKRhb closed 2 years ago

JKRhb commented 2 years ago

This PR removes the

const that = this

statements from the codebase and replaces occurences of that with this by using arrow functions which allow for calling this directly. This should make the code easier to read.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 1273023552


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/server.js 15 18 83.33%
lib/agent.js 35 40 87.5%
<!-- Total: 67 75 89.33% -->
Totals Coverage Status
Change from base Build 1272738547: -0.06%
Covered Lines: 1079
Relevant Lines: 1170

💛 - Coveralls
Apollon77 commented 2 years ago

thank you :-)) great improvement