Jelajahi Sumber

Actually need to return the translation

d98762625 6 tahun lalu
induk
melakukan
1a9c9a5ddf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/core/Dish.mjs

+ 1 - 1
src/core/Dish.mjs

@@ -404,7 +404,7 @@ class Dish {
         };
 
         try {
-            toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type]();
+            return toByteArrayFuncs[Utils.isNode() && "node" || "browser"][this.type]();
         } catch (err) {
             throw new DishError(`Error translating from ${Dish.enumLookup(this.type)} to ArrayBuffer: ${err}`);
         }