Skip to content

Commit c7cbeea

Browse files
committed
Update
1 parent b1a3832 commit c7cbeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dart/lib/src/scope.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Scope {
5555
/// becomes a child of this active span.
5656
@internal
5757
Span? getActiveSpan() {
58-
return _activeSpans.isNotEmpty ? _activeSpans.last : null;
58+
return _activeSpans.lastOrNull;
5959
}
6060

6161
/// Sets the given [span] as the currently active span.

0 commit comments

Comments
 (0)