Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit e4566c0

Browse files
authored
Merge pull request #240 from dart-lang/format_coverage_type_error
Fix format_coverage type error
2 parents b993828 + 773748e commit e4566c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/format_coverage.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ List<File> filesToProcess(String absPath) {
224224
if (FileSystemEntity.isDirectorySync(absPath)) {
225225
return new Directory(absPath)
226226
.listSync(recursive: true)
227-
.where((e) => e is File && filePattern.hasMatch(p.basename(e.path)))
227+
.whereType<File>()
228+
.where((e) => filePattern.hasMatch(p.basename(e.path)))
228229
.toList();
229230
}
230231
return <File>[new File(absPath)];

0 commit comments

Comments
 (0)