Selaa lähdekoodia

Remove unecessary or meaningless code

Lucas de Souza 5 vuotta sitten
vanhempi
commit
19ebecf197
2 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 1
      js/assessment/ivprogAssessment.js
  2. 0 2
      js/visualUI/functions.js

+ 1 - 1
js/assessment/ivprogAssessment.js

@@ -22,7 +22,7 @@ export class IVProgAssessment {
       const partialTests = this.testCases.map( (t, name) => {
         return this.partialEvaluateTestCase(new IVProgProcessor(validTree), t.input, t.output, name);
       });
-      const testResult = partialTests.reduce((acc, curr) => acc.then( v => curr(v)), Promise.resolve(0));
+      const testResult = partialTests.reduce((acc, curr) => acc.then(curr), Promise.resolve(0));
       return testResult.then(total => Promise.resolve(total / this.testCases.length))
         .catch(err => {
           this.domConsole.err("Erro durante a execução do programa");// try and show error messages through domconsole

+ 0 - 2
js/visualUI/functions.js

@@ -585,8 +585,6 @@ function runCodeAssessment () {
   runner.runTest().then(grade => {
     if (!is_iassign) {
       parent.getEvaluationCallback(grade);
-    } else {
-      is_iassign = false;
     }
   }).catch( err => domConsole.err(err.message));