mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Apply suggestions from code review
Co-Authored-By: mzgoddard <mzgoddard@gmail.com>
This commit is contained in:
parent
f1a24e3296
commit
4ad101f5d4
1 changed files with 3 additions and 3 deletions
|
@ -310,12 +310,12 @@ class VirtualMachine extends EventEmitter {
|
||||||
// The project appears to be a Scratch 1 file but it
|
// The project appears to be a Scratch 1 file but it
|
||||||
// could not be successfully translated into a Scratch 2
|
// could not be successfully translated into a Scratch 2
|
||||||
// project.
|
// 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.
|
// an SB1File.
|
||||||
throw error;
|
return Promise.reject(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
return validationPromise
|
return validationPromise
|
||||||
|
|
Loading…
Reference in a new issue