Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 50ed8a3

Browse files
authored
Enable unnecessary_null_comparison check (#118849)
* Enable unnecessary_null_comparison outside of packages * fix snippet * enable for all
1 parent 5dabe10 commit 50ed8a3

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

analysis_options.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ analyzer:
2323
# allow self-reference to deprecated members (we do this because otherwise we have
2424
# to annotate every member in every test, assert, etc, when we deprecate something)
2525
deprecated_member_use_from_same_package: ignore
26-
# Turned off until null-safe rollout is complete.
27-
unnecessary_null_comparison: ignore
2826
exclude:
2927
- "bin/cache/**"
3028
# Ignore protoc generated files

packages/flutter/lib/src/rendering/box.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,6 @@ class _IntrinsicDimensionsCacheEntry {
987987
/// AxisDirection get axis => _axis;
988988
/// AxisDirection _axis = AxisDirection.down; // or initialized in constructor
989989
/// set axis(AxisDirection value) {
990-
/// assert(value != null); // same checks as in the constructor
991990
/// if (value == _axis) {
992991
/// return;
993992
/// }

0 commit comments

Comments
 (0)