Skip to content

Commit

Permalink
refactor: remove unnecessary condition (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and mcollina committed Mar 6, 2019
1 parent 3626ca9 commit b2bdfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reply.js
Expand Up @@ -75,7 +75,7 @@ Object.defineProperty(Reply.prototype, 'sent', {
throw new FST_ERR_REP_SENT_VALUE()
}

if (this[kReplySent] && value) {
if (this[kReplySent]) {
throw new FST_ERR_REP_ALREADY_SENT()
}

Expand Down

0 comments on commit b2bdfee

Please sign in to comment.