mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Why do our lint rules require such weird formatting
This commit is contained in:
parent
998c5a186e
commit
2bd468950f
2 changed files with 42 additions and 44 deletions
|
@ -86,8 +86,7 @@ const fetchBitmapCanvas_ = function (costume, rotationCenter) {
|
|||
loadedOne = true;
|
||||
}
|
||||
baseImageElement.src = costume.asset.encodeDataURI();
|
||||
})
|
||||
.then(imageElements => {
|
||||
}).then(imageElements => {
|
||||
const [baseImageElement, textImageElement] = imageElements;
|
||||
|
||||
const canvas = document.createElement('canvas');
|
||||
|
|
|
@ -81,8 +81,7 @@ const deserializeCostume = function (costume, runtime, zip, assetFileName, textL
|
|||
costume.asset.dataFormat,
|
||||
new Uint8Array(Object.keys(costume.asset.data).map(key => costume.asset.data[key])),
|
||||
costume.asset.assetId
|
||||
))
|
||||
.then(asset => {
|
||||
)).then(asset => {
|
||||
costume.asset = asset;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue