Remove redundant check for platform.isLinux. (#19441)

We don't actually care if we're on linux, we care only if the lcov
tool is available. We check for that explicitly just below.
Additionally there is code below which indicates that lcov is available
for macOS. Before this change that code would never execute.
This commit is contained in:
Gary Miguel 2018-07-23 08:38:20 -07:00 committed by Todd Volkert
parent 27018359d2
commit a7b59b51b8

View File

@ -121,14 +121,6 @@ class CoverageCollector extends TestWatcher {
const String baseCoverageData = 'coverage/lcov.base.info';
if (mergeCoverageData) {
if (!platform.isLinux) {
printError(
'Merging coverage data is supported only on Linux because it '
'requires the "lcov" tool.'
);
return false;
}
if (!fs.isFileSync(baseCoverageData)) {
printError('Missing "$baseCoverageData". Unable to merge coverage data.');
return false;