Merge pull request #1433 from Tyriar/fix_lint

Run tslint on all of src/ (for good this time)
This commit is contained in:
Daniel Imms
2018-05-14 11:33:30 -07:00
committed by GitHub
3 changed files with 10 additions and 12 deletions
+2 -3
View File
@@ -103,10 +103,9 @@ export function generateCharAtlas(context: Window, canvasFactory: (width: number
if (canvas instanceof HTMLCanvasElement) {
// Just return the HTMLCanvas if it's a HTMLCanvasElement
return canvas;
} else {
// Transfer to an ImageBitmap is this is an OffscreenCanvas
return new Promise(r => r(canvas.transferToImageBitmap()));
}
// Transfer to an ImageBitmap is this is an OffscreenCanvas
return new Promise(r => r(canvas.transferToImageBitmap()));
}
const charAtlasImageData = ctx.getImageData(0, 0, canvas.width, canvas.height);