mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
27018359d2
commit
a7b59b51b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user