From 1020793e96cc176994f1aba7c8e7ebd685f236aa Mon Sep 17 00:00:00 2001 From: pyoor Date: Wed, 13 Sep 2017 16:31:04 -0400 Subject: [PATCH] Further cleanup in make.typed.any() --- lib/make/typed.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()