From aa362ba18bd8ca411b9ce442412b955fa7e52f0c Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 5 Jul 2019 12:41:47 +0100 Subject: [PATCH] Removed async from detectDishType --- src/core/Dish.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Dish.mjs b/src/core/Dish.mjs index 3937e9f5..1e2331eb 100755 --- a/src/core/Dish.mjs +++ b/src/core/Dish.mjs @@ -146,7 +146,7 @@ class Dish { * Detects the MIME type of the current dish * @returns {string} */ - async detectDishType() { + detectDishType() { const data = new Uint8Array(this.value.slice(0, 2048)), types = detectFileType(data); @@ -177,7 +177,7 @@ class Dish { break; case Dish.ARRAY_BUFFER: case Dish.BYTE_ARRAY: - title = await this.detectDishType(); + title = this.detectDishType(); if (title !== null) break; // fall through if no mime type was detected default: