From 7c02060040982d6bac66280b5496f4ad356fdd96 Mon Sep 17 00:00:00 2001 From: OpenNingia Date: Tue, 23 Jan 2018 11:22:45 +0100 Subject: [PATCH] linter fixes --- src/indicators.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/indicators.ts b/src/indicators.ts index 389410c..fd520fd 100644 --- a/src/indicators.ts +++ b/src/indicators.ts @@ -61,12 +61,12 @@ export class Indicators { if (err) { return reject(err); } const section = data.find((lcovSection) => { // consider windows and linux file paths - var cleanFile = file.replace(/[\\\/]/g, ""); - var cleanLcovFileSection = lcovSection.file.replace(/[\\\/]/g, ""); + let cleanFile = file.replace(/[\\\/]/g, ""); + let cleanLcovFileSection = lcovSection.file.replace(/[\\\/]/g, ""); // on Windows remove drive letter from path because of cobertura format // also convert both path to lowercase because Windows's filesystem is case insensitive - if ( process.platform === 'win32' ) { + if ( process.platform === "win32" ) { cleanFile = cleanFile.substr(2).toLowerCase(); cleanLcovFileSection = cleanLcovFileSection.toLowerCase(); }