Skip to content

Commit

Permalink
Fix: Add missing return values - dart analyzer (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Feb 3, 2022
1 parent 7dea05e commit a6f041d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

* Fix: Add missing return values - dart analyzer (#742)

# 6.3.0

* Feat: Support maxSpan for performance API and expose SentryOptions through Hub (#716)
Expand Down
1 change: 1 addition & 0 deletions dart/lib/src/hub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -558,5 +558,6 @@ class _WeakMap {
stackTrace: stackTrace,
);
}
return null;
}
}
2 changes: 1 addition & 1 deletion dart/test/sentry_options_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void main() {
test('isTracingEnabled is enabled by theres sampler', () {
final options = SentryOptions(dsn: fakeDsn);

double? sampler(SentrySamplingContext samplingContext) {}
double? sampler(SentrySamplingContext samplingContext) => 0.0;

options.tracesSampler = sampler;

Expand Down

0 comments on commit a6f041d

Please sign in to comment.