diff --git a/lib/make/typed.js b/lib/make/typed.js index 966ec89..ed31b25 100644 --- a/lib/make/typed.js +++ b/lib/make/typed.js @@ -69,7 +69,7 @@ make.typed = { } }, any: function () { - let value = random.choose([ + return random.choose([ [1, [this.byte, this.octet]], [1, [this.short, this.unsignedShort]], [1, [this.long, this.unsignedLong]], @@ -77,7 +77,6 @@ make.typed = { [1, [this.double, this.unrestrictedDouble]], [1, [make.number.range, make.number.tiny]] ]) - return value }, arrayBuffer: function (byteLength = null) { let length = (byteLength !== null) ? byteLength : this.unsignedShort()