Make false check explicit in isBerWriter comparison

Co-authored-by: James Sumners <james@sumners.email>
This commit is contained in:
Robert Kawecki 2020-07-21 13:51:49 +02:00 committed by GitHub
parent 4318b28198
commit 1a09e62eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function isBerWriter (ber) {
function mixin (target) {
target.prototype.toBer = function toBer (ber) {
if (!isBerWriter(ber)) { throw new TypeError('ber (BerWriter) required') }
if (isBerWriter(ber) === false) { throw new TypeError('ber (BerWriter) required') }
ber.startSequence(TYPES[this.type])
ber = this._toBer(ber)