Skip to content

Commit

Permalink
Fix a small nit in ping function
Browse files Browse the repository at this point in the history
  • Loading branch information
meow-developer committed Oct 16, 2022
1 parent 02567c2 commit 128ebb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class PromiseConnection extends EventEmitter {
const c = this.connection;
const localErr = new Error();
return new this.Promise((resolve, reject) => {
c.ping((err) => {
c.ping(err => {
if (err) {
localErr.message = err.message;
localErr.code = err.code;
Expand Down

0 comments on commit 128ebb4

Please sign in to comment.