Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable avoid_dynamic_calls lint #2410

Merged
merged 13 commits into from
Oct 29, 2024
Prev Previous commit
Next Next commit
format
  • Loading branch information
natebosch committed Oct 21, 2024
commit 077accff7c48d9af57007e1a0608e78fdc3ded9d
4 changes: 2 additions & 2 deletions pkgs/matcher/lib/src/numeric_matchers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class _IsCloseTo extends FeatureMatcher<num> {
.addDescriptionOf(_value);

@override
Description describeTypedMismatch(num item,
Description mismatchDescription, Map matchState, bool verbose) {
Description describeTypedMismatch(
num item, Description mismatchDescription, Map matchState, bool verbose) {
var diff = item - _value;
if (diff < 0) diff = -diff;
return mismatchDescription.add(' differs by ').addDescriptionOf(diff);
Expand Down
Loading