Unverified Commit b041a589 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

enable lint prefer_if_null_operators (#35745)

parent ad9b077f
...@@ -141,7 +141,7 @@ linter: ...@@ -141,7 +141,7 @@ linter:
# - prefer_function_declarations_over_variables # not yet tested # - prefer_function_declarations_over_variables # not yet tested
- prefer_generic_function_type_aliases - prefer_generic_function_type_aliases
# - prefer_if_elements_to_conditional_expressions # not yet tested # - prefer_if_elements_to_conditional_expressions # not yet tested
# - prefer_if_null_operators # not yet tested - prefer_if_null_operators
- prefer_initializing_formals - prefer_initializing_formals
- prefer_inlined_adds - prefer_inlined_adds
# - prefer_int_literals # not yet tested # - prefer_int_literals # not yet tested
......
...@@ -41,18 +41,17 @@ void main() { ...@@ -41,18 +41,17 @@ void main() {
final MockProcessResult result = MockProcessResult(); final MockProcessResult result = MockProcessResult();
when(result.exitCode).thenReturn(0); when(result.exitCode).thenReturn(0);
when<String>(result.stdout).thenReturn(response == null when<String>(result.stdout).thenReturn(response ??
? json.encode(<Map<String, dynamic>>[ json.encode(<Map<String, dynamic>>[
<String, dynamic>{ <String, dynamic>{
'installationPath': visualStudioPath, 'installationPath': visualStudioPath,
'displayName': 'Visual Studio Community 2017', 'displayName': 'Visual Studio Community 2017',
'installationVersion': '15.9.28307.665', 'installationVersion': '15.9.28307.665',
'catalog': <String, String>{ 'catalog': <String, String>{
'productDisplayVersion': '15.9.12', 'productDisplayVersion': '15.9.12',
}, },
} },
]) ]));
: response);
final List<String> requirementArguments = requiredComponents == null final List<String> requirementArguments = requiredComponents == null
? <String>[] ? <String>[]
......
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