mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 23:10:56 -04:00
Remove catches that do nothing
This commit is contained in:
parent
c68da6605b
commit
94227c00fa
1 changed files with 0 additions and 2 deletions
|
@ -128,7 +128,6 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) {
|
|||
assetMatchesBase: scale === 1 && !textImageElement
|
||||
};
|
||||
})
|
||||
.catch(e => Promise.reject(e))
|
||||
.finally(() => {
|
||||
// Clean up the costume object
|
||||
delete costume.textLayerMD5;
|
||||
|
@ -162,7 +161,6 @@ const loadBitmap_ = function (costume, runtime, rotationCenter) {
|
|||
}
|
||||
resolve(fetched.canvas);
|
||||
}))
|
||||
.catch(e => Promise.reject(e))
|
||||
.then(canvas => {
|
||||
// createBitmapSkin does the right thing if costume.bitmapResolution or rotationCenter are undefined...
|
||||
costume.skinId = runtime.renderer.createBitmapSkin(canvas, costume.bitmapResolution, rotationCenter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue