We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a3832 commit c7cbeeaCopy full SHA for c7cbeea
packages/dart/lib/src/scope.dart
@@ -55,7 +55,7 @@ class Scope {
55
/// becomes a child of this active span.
56
@internal
57
Span? getActiveSpan() {
58
- return _activeSpans.isNotEmpty ? _activeSpans.last : null;
+ return _activeSpans.lastOrNull;
59
}
60
61
/// Sets the given [span] as the currently active span.
0 commit comments