From fe9f20f0856af8421182c950688497e4a5bbcda1 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 17 Apr 2018 19:32:06 +0000 Subject: [PATCH] Fix lint --- util/Canvas.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/Canvas.js b/util/Canvas.js index bce3b8bd..cdbd6165 100644 --- a/util/Canvas.js +++ b/util/Canvas.js @@ -78,8 +78,7 @@ class CanvasUtil { } static drawImageWithTint(ctx, image, color, x, y, width, height) { - const fillStyle = ctx.fillStyle; - const globalAlpha = ctx.globalAlpha; + const { fillStyle, globalAlpha } = ctx; ctx.fillStyle = color; ctx.drawImage(image, x, y, width, height); ctx.globalAlpha = 0.5;