File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ class _ElementVisitorAdapter extends GeneralizingElementVisitor {
422
422
@override
423
423
void visitElement (Element element) {
424
424
var visitChildren = processor (element);
425
- if (visitChildren == true ) {
425
+ if (visitChildren) {
426
426
element.visitChildren (this );
427
427
}
428
428
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class _Visitor extends SimpleAstVisitor<void> {
68
68
if (declaredElement != null && ! declaredElement.isPrivate) {
69
69
var parametersToLint =
70
70
node.parameters.parameters.where (_isFormalParameterToLint);
71
- if (parametersToLint.isNotEmpty == true ) {
71
+ if (parametersToLint.isNotEmpty) {
72
72
rule.reportLint (parametersToLint.first);
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class _Visitor extends SimpleAstVisitor<void> {
59
59
return ;
60
60
}
61
61
62
- bool isTrue (Expression e) => e is BooleanLiteral && e.value == true ;
62
+ bool isTrue (Expression e) => e is BooleanLiteral && e.value;
63
63
64
64
var unicode = args.any ((arg) =>
65
65
arg is NamedExpression &&
Original file line number Diff line number Diff line change @@ -61,6 +61,5 @@ class Annotation implements Comparable<Annotation> {
61
61
62
62
extension on String ? {
63
63
int ? toInt () => this == null ? null : int .parse (this ! );
64
- String ? toNullIfBlank () =>
65
- this == null || this ! .trim ().isEmpty == true ? null : this ;
64
+ String ? toNullIfBlank () => this == null || this ! .trim ().isEmpty ? null : this ;
66
65
}
You can’t perform that action at this time.
0 commit comments