Unverified Commit 060adf09 authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] Migrate commands.shard/hermetic/doctor_test to null-safety and...

[flutter_tools] Migrate commands.shard/hermetic/doctor_test to null-safety and make hermetic (#107670)
parent bccbcd7d
......@@ -320,12 +320,12 @@ class Doctor {
Future<bool> diagnose({
bool androidLicenses = false,
bool verbose = true,
bool showColor = true,
AndroidLicenseValidator? androidLicenseValidator,
bool showPii = true,
List<ValidatorTask>? startedValidatorTasks,
bool sendEvent = true,
}) async {
final bool showColor = globals.terminal.supportsColor;
if (androidLicenses && androidLicenseValidator != null) {
return androidLicenseValidator.runLicenseManager();
}
......@@ -644,7 +644,7 @@ class DoctorText {
Future<String> _runDiagnosis(bool showPii) async {
try {
await _doctor.diagnose(showColor: false, startedValidatorTasks: _validatorTasks, showPii: showPii, sendEvent: _sendDoctorEvent);
await _doctor.diagnose(startedValidatorTasks: _validatorTasks, showPii: showPii, sendEvent: _sendDoctorEvent);
// Do not send the doctor event a second time.
_sendDoctorEvent = false;
final String text = _logger.statusText;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment