소스 검색

Removed async from detectDishType

n1474335 6 년 전
부모
커밋
aa362ba18b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/Dish.mjs

+ 2 - 2
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: