Enable use_if_null_to_convert_nulls_to_bools lint (#98753)
This commit is contained in:
@@ -723,7 +723,7 @@ class FuchsiaDevice extends Device {
|
||||
continue;
|
||||
}
|
||||
final int? port = vmService.httpAddress?.port;
|
||||
if (port != null && uiIsolate.name?.contains(isolateName) == true) {
|
||||
if (port != null && (uiIsolate.name?.contains(isolateName) ?? false)) {
|
||||
return port;
|
||||
}
|
||||
}
|
||||
@@ -821,7 +821,7 @@ class FuchsiaIsolateDiscoveryProtocol {
|
||||
continue;
|
||||
}
|
||||
final int? port = service?.httpAddress?.port;
|
||||
if (port != null && uiIsolate.name?.contains(_isolateName) == true) {
|
||||
if (port != null && (uiIsolate.name?.contains(_isolateName) ?? false)) {
|
||||
_foundUri.complete(_device.ipv6
|
||||
? Uri.parse('http://[$_ipv6Loopback]:$port/')
|
||||
: Uri.parse('http://$_ipv4Loopback:$port/'));
|
||||
|
||||
@@ -230,7 +230,7 @@ class FuchsiaPackageServer {
|
||||
if (_process == null) {
|
||||
return false;
|
||||
}
|
||||
return (await globals.fuchsiaSdk?.fuchsiaPM.publish(_repo, package.path)) == true;
|
||||
return (await globals.fuchsiaSdk?.fuchsiaPM.publish(_repo, package.path)) ?? false;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user