Skip to content

Commit

Permalink
Add default
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Jan 16, 2024
1 parent 3a8317d commit 1e5ebf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkgs/firehose/bin/health.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ void main(List<String> arguments) async {
)
..addMultiOption(
'experiments',
defaultsTo: [],
help: 'Which experiments should be enabled for Dart',
)
..addFlag(
Expand Down
6 changes: 3 additions & 3 deletions pkgs/firehose/lib/src/health/health.dart
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ Changes to files need to be [accounted for](https://github.com/dart-lang/ecosyst
.where((file) =>
![FileStatus.removed, FileStatus.unchanged].contains(file.status))
.where((file) => File(file.relativePath).existsSync())
.where((file) {
return File(file.relativePath).readAsStringSync().contains(dns);
}).toList();
.where(
(file) => File(file.relativePath).readAsStringSync().contains(dns))
.toList();
print('Found files with $dns: $filesWithDNS');

final bodyContainsDNS = body.contains(dns);
Expand Down

0 comments on commit 1e5ebf2

Please sign in to comment.