Apply suggestions from code review

Co-Authored-By: mzgoddard <mzgoddard@gmail.com>
This commit is contained in:
Karishma Chadha 2018-12-20 14:12:33 -05:00 committed by GitHub
parent f1a24e3296
commit 4ad101f5d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,12 +310,12 @@ class VirtualMachine extends EventEmitter {
// The project appears to be a Scratch 1 file but it
// could not be successfully translated into a Scratch 2
// project.
throw sb1Error;
return Promise.reject(sb1Error);
}
}
// Through original error since the input does not appear to be
// Throw original error since the input does not appear to be
// an SB1File.
throw error;
return Promise.reject(error);
});
return validationPromise