From 86bf8742939e122313a121a1c5ffc38660c3e8cd Mon Sep 17 00:00:00 2001
From: Laurent Knoll <laurent.knoll@orange.com>
Date: Tue, 27 Sep 2022 15:25:53 +0200
Subject: [PATCH] =?UTF-8?q?Divers=20qualit=C3=A9=20de=20code?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/steps/downloadStep.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/steps/downloadStep.tsx b/src/steps/downloadStep.tsx
index 6d0163c..5e971d5 100644
--- a/src/steps/downloadStep.tsx
+++ b/src/steps/downloadStep.tsx
@@ -101,10 +101,10 @@ export class DownloadStep extends Step<DownloadStepState> {
         let raster = path.rasterize({ insert: false});
         raster.smoothing = "off";
 
-        var newCanvas = document.createElement('canvas');
-        const w = this.props.lab.data.pictureSize.width;
+        let newCanvas = document.createElement('canvas');
+        let w = this.props.lab.data.pictureSize.width;
         newCanvas.width = w;
-        const h = this.props.lab.data.pictureSize.height;
+        let h = this.props.lab.data.pictureSize.height;
         newCanvas.height = h;
 
         var newContext = newCanvas.getContext('2d');
-- 
GitLab