[go: nahoru, domu]

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

Commit

Permalink
Enable unnecessary_null_comparison check (#118849)
Browse files Browse the repository at this point in the history
* Enable unnecessary_null_comparison outside of packages

* fix snippet

* enable for all
  • Loading branch information
goderbauer committed Jan 24, 2023
1 parent 5dabe10 commit 50ed8a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/flutter/lib/src/rendering/box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/// }
Expand Down

0 comments on commit 50ed8a3

Please sign in to comment.