Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
style(nodejs): remove unnecessary async keyword
The `connect` method already returns a promise, the `async` keyword is not required.
  • Loading branch information
juanarbol committed Aug 19, 2022
commit 153436a737683ab3a034390d34c3046cd6ccb950
2 changes: 1 addition & 1 deletion src/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Sender {
* @param {net.NetConnectOpts | tls.ConnectionOptions} options - Connection options, host and port are required.
* @param {boolean} [secure = false] - If true connection will use TLS encryption.
*/
async connect(options, secure = false) {
connect(options, secure = false) {
let self = this;

return new Promise((resolve, reject) => {
Expand Down