Sfoglia il codice sorgente

Merge remote-tracking branch 'Steuchs_bug_hunt/QSRC2TW'

Kevin_Smarts 2 mesi fa
parent
commit
6ee3ddd1c2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      qsrc2tw/tools/QSRC2TW/index.js

+ 2 - 2
qsrc2tw/tools/QSRC2TW/index.js

@@ -81,8 +81,8 @@ const convertPromise = new Promise((resolve, reject) => {
             generatedFilesPrefix: generatedFilesPrefix,
             options:options,
         }, (err, result) => {
-            const wasSuccessful = (result[0] == 0);
-            const message = result[1];
+            const wasSuccessful = (result?.[0] === 0);
+            const message = result?.[1] ?? '';
 
             if(!wasSuccessful){
                 const displayFilePath = baseFileName(filePath);