Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenNingia committed Jan 23, 2018
1 parent 1f42c14 commit 7c02060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/indicators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7c02060

Please sign in to comment.