Lutz Roeder 8 лет назад
Родитель
Сommit
ee1fc5347f
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/coreml-model.js

+ 1 - 2
src/coreml-model.js

@@ -9,8 +9,7 @@ class CoreMLModel {
     static open(buffer, identifier, host, callback) { 
         host.import('/coreml.js', (err) => {
             if (err) {
-                callback(new Error('Unsupported file extension \'.mlmodel\'.'), null);
-                // callback(err, null);
+                callback(err, null);
             }
             else {
                 coreml = protobuf.roots.coreml.CoreML.Specification;