Skip to content

Commit

Permalink
Merge pull request #786 from lpinca/remove/unused-property
Browse files Browse the repository at this point in the history
Remove unnecessary assignment
  • Loading branch information
JacksonTian committed Jul 17, 2016
2 parents fba5858 + 2b8a484 commit 3291c47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,11 @@ class Receiver {
}

/**
* Checks payload size, disconnects socket when it exceeds maxPayload
*
* @api private
*/
* Checks payload size, disconnects socket when it exceeds maxPayload
*
* @api private
*/

maxPayloadExceeded(length) {
if (this.maxPayload === undefined || this.maxPayload === null || this.maxPayload < 1) {
return false;
Expand All @@ -382,7 +383,6 @@ class Receiver {
return false;
}
this.error('payload cannot exceed ' + this.maxPayload + ' bytes', 1009);
this.messageBuffer = [];
this.cleanup();

return true;
Expand Down

0 comments on commit 3291c47

Please sign in to comment.