compiler: Remove unnecessary exclusion in analysis options

Change-Id: Idc8df59d395403183ab5da11bcb1894bcfc0d8bc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222381
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
This commit is contained in:
Sam Rawlins 2021-12-09 17:25:29 +00:00 committed by Commit Bot
parent ac259f413a
commit abb286e012
2 changed files with 1 additions and 4 deletions

View file

@ -5,9 +5,6 @@
analyzer:
errors:
todo: ignore
# Allow cross-package deprecated calls
# TODO(srawlins): clean these up and remove this "ignore."
deprecated_member_use: ignore
# Allow deprecated calls from within the same package
deprecated_member_use_from_same_package: ignore

View file

@ -31,7 +31,7 @@ void main(List<String> arguments) {
} else if (arg == '--write-js') {
writeJs = true;
} else {
int index = int.parse(arg, onError: (_) => null);
int index = int.tryParse(arg);
if (index != null) {
indices ??= <int>[];
if (index < 0 || index >= TESTS.length * 2) {