Make false check explicit in isBerWriter comparison
Co-authored-by: James Sumners <james@sumners.email>
This commit is contained in:
parent
4318b28198
commit
1a09e62eda
|
@ -45,7 +45,7 @@ function isBerWriter (ber) {
|
||||||
|
|
||||||
function mixin (target) {
|
function mixin (target) {
|
||||||
target.prototype.toBer = function toBer (ber) {
|
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.startSequence(TYPES[this.type])
|
||||||
ber = this._toBer(ber)
|
ber = this._toBer(ber)
|
||||||
|
|
Loading…
Reference in New Issue