From aa9bf081572a20a6d6b902dc0d0f2835d991aa0e Mon Sep 17 00:00:00 2001 From: d98762625 Date: Fri, 3 May 2019 14:38:21 +0100 Subject: [PATCH] amend comments, remove return type from Dish translate --- src/core/Dish.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Dish.mjs b/src/core/Dish.mjs index cc4dfa18..0b1b8bf8 100755 --- a/src/core/Dish.mjs +++ b/src/core/Dish.mjs @@ -370,7 +370,7 @@ class Dish { } /** - * Convert this.value to a ByteArray + * Convert this.value to an ArrayBuffer * * If running in a browser, _toByteArray is asynchronous. * @@ -404,14 +404,14 @@ class Dish { }; try { - return toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type](); + toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type](); } catch (err) { throw new DishError(`Error translating from ${Dish.enumLookup(this.type)} to ArrayBuffer: ${err}`); } } /** - * Convert this.value to the given type. + * Convert this.value to the given type from ArrayBuffer * * @param {number} toType - the Dish enum to convert to * @param {boolean} [notUTF8=false] - Do not treat strings as UTF8.