mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:00:09 +00:00
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:
parent
ac259f413a
commit
abb286e012
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue