Skip to content

Commit d4290fc

Browse files
committed
Removed explicit comparsion with nullptr
1 parent 87db36b commit d4290fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ydb/library/actors/wilson/wilson_span.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace NWilson {
5252
}
5353

5454
void TSpan::Send() {
55-
if (Data->ActorSystem != nullptr) {
55+
if (Data->ActorSystem) {
5656
Data->ActorSystem->Send(new IEventHandle(MakeWilsonUploaderId(), {}, new TEvWilson(&Data->Span)));
5757
}
5858
Data->Sent = true;

ydb/library/actors/wilson/wilson_span.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ namespace NWilson {
6464
, StartCycles(startCycles)
6565
, TraceId(std::move(traceId))
6666
, Flags(flags)
67-
, ActorSystem(actorSystem != nullptr ? actorSystem : (NActors::TlsActivationContext ? NActors::TActivationContext::ActorSystem() : nullptr))
67+
, ActorSystem(actorSystem ? actorSystem : (NActors::TlsActivationContext ? NActors::TActivationContext::ActorSystem() : nullptr))
6868
{
69-
Y_DEBUG_ABORT_UNLESS(ActorSystem != nullptr, "Attempting to create NWilson::TSpan outside of actor system without providing actorSystem pointer");
69+
Y_DEBUG_ABORT_UNLESS(ActorSystem, "Attempting to create NWilson::TSpan outside of actor system without providing actorSystem pointer");
7070
}
7171

7272
~TData() {

0 commit comments

Comments
 (0)