From ff21930515e15e367a3d033230d0c5def75fc206 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 22 Apr 2020 18:38:12 +0200 Subject: [PATCH] remove redundant code (#283) The check is already done above. --- lib/convertLcovToCoveralls.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/convertLcovToCoveralls.js b/lib/convertLcovToCoveralls.js index 65ec381a..710c87d3 100644 --- a/lib/convertLcovToCoveralls.js +++ b/lib/convertLcovToCoveralls.js @@ -99,9 +99,7 @@ const convertLcovToCoveralls = (input, options, cb) => { if (options.parallel) { postJson.parallel = options.parallel; } - if (options.flag_name) { - postJson.flag_name = options.flag_name; - } + parsed.forEach(file => { file.file = cleanFilePath(file.file); const currentFilePath = path.resolve(filepath, file.file);