Enable avoid_redundant_argument_values lint (#91409)

This commit is contained in:
Ian Hickson
2021-10-07 20:13:02 -07:00
committed by GitHub
parent 4bf7179e51
commit 5fd259be24
667 changed files with 1693 additions and 3385 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) {