Enable avoid_redundant_argument_values lint (#91409) (#91462)

This commit is contained in:
Ian Hickson
2021-10-08 09:25:14 -07:00
committed by GitHub
parent ac88d4ba5d
commit 61a0add286
667 changed files with 1694 additions and 3386 deletions

View File

@@ -46,7 +46,6 @@ Future<vms.VmService> _waitAndConnect(
final vms.VmService service = vms.VmService(
controller.stream,
socket.add,
log: null,
disposeHandler: () => socket.close(),
streamClosed: streamClosedCompleter.future
);

View File

@@ -260,8 +260,7 @@ class FuchsiaRemoteConnection {
if (event.eventType == DartVmEventType.started) {
_log.fine('New VM found on port: ${event.servicePort}. Searching '
'for Isolate: $pattern');
final DartVm? vmService = await _getDartVm(event.uri,
timeout: _kDartVmConnectionTimeout);
final DartVm? vmService = await _getDartVm(event.uri);
// If the VM service is null, set the result to the empty list.
final List<IsolateRef> result = await vmService?.getMainIsolatesByPattern(pattern!) ?? <IsolateRef>[];
if (result.isNotEmpty) {