mirror of
https://github.com/flutter/flutter
synced 2024-07-16 10:29:14 +00:00
Enable unnecessary_null_comparison
check (#118849)
* Enable unnecessary_null_comparison outside of packages * fix snippet * enable for all
This commit is contained in:
parent
5dabe102a2
commit
50ed8a34b0
|
@ -23,8 +23,6 @@ analyzer:
|
|||
# allow self-reference to deprecated members (we do this because otherwise we have
|
||||
# to annotate every member in every test, assert, etc, when we deprecate something)
|
||||
deprecated_member_use_from_same_package: ignore
|
||||
# Turned off until null-safe rollout is complete.
|
||||
unnecessary_null_comparison: ignore
|
||||
exclude:
|
||||
- "bin/cache/**"
|
||||
# Ignore protoc generated files
|
||||
|
|
|
@ -987,7 +987,6 @@ class _IntrinsicDimensionsCacheEntry {
|
|||
/// AxisDirection get axis => _axis;
|
||||
/// AxisDirection _axis = AxisDirection.down; // or initialized in constructor
|
||||
/// set axis(AxisDirection value) {
|
||||
/// assert(value != null); // same checks as in the constructor
|
||||
/// if (value == _axis) {
|
||||
/// return;
|
||||
/// }
|
||||
|
|
Loading…
Reference in a new issue