Skip to content

Commit 455d2ef

Browse files
authored
style(nodejs): remove unnecessary async keyword (#6)
The `connect` method already returns a promise, the `async` keyword is not required.
1 parent d268dc2 commit 455d2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Sender {
101101
* @param {net.NetConnectOpts | tls.ConnectionOptions} options - Connection options, host and port are required.
102102
* @param {boolean} [secure = false] - If true connection will use TLS encryption.
103103
*/
104-
async connect(options, secure = false) {
104+
connect(options, secure = false) {
105105
let self = this;
106106

107107
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)