Unverified Commit 50ed8a34 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Enable `unnecessary_null_comparison` check (#118849)

* Enable unnecessary_null_comparison outside of packages

* fix snippet

* enable for all
parent 5dabe102
......@@ -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;
/// }
......
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