Why do our lint rules require such weird formatting

This commit is contained in:
DD 2018-11-06 16:54:41 -05:00
parent 998c5a186e
commit 2bd468950f
2 changed files with 42 additions and 44 deletions

View file

@ -86,8 +86,7 @@ const fetchBitmapCanvas_ = function (costume, rotationCenter) {
loadedOne = true; loadedOne = true;
} }
baseImageElement.src = costume.asset.encodeDataURI(); baseImageElement.src = costume.asset.encodeDataURI();
}) }).then(imageElements => {
.then(imageElements => {
const [baseImageElement, textImageElement] = imageElements; const [baseImageElement, textImageElement] = imageElements;
const canvas = document.createElement('canvas'); const canvas = document.createElement('canvas');

View file

@ -81,8 +81,7 @@ const deserializeCostume = function (costume, runtime, zip, assetFileName, textL
costume.asset.dataFormat, costume.asset.dataFormat,
new Uint8Array(Object.keys(costume.asset.data).map(key => costume.asset.data[key])), new Uint8Array(Object.keys(costume.asset.data).map(key => costume.asset.data[key])),
costume.asset.assetId costume.asset.assetId
)) )).then(asset => {
.then(asset => {
costume.asset = asset; costume.asset = asset;
}); });
} }