Skip to content

Commit

Permalink
Update packages/opentelemetry-sdk-trace-base/src/Span.ts
Browse files Browse the repository at this point in the history
Replace truthy value check with loose null check

Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
ArtAhmetaj and Flarna authored Nov 24, 2023
1 parent 195ca39 commit 691bf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-trace-base/src/Span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Span implements APISpan, ReadableSpan {
this.parentSpanId = parentSpanId;
this.kind = kind;
this.links = links;
if(initAttributes){
if (initAttributes != null) {
this.setAttributes(initAttributes);
}

Expand Down

0 comments on commit 691bf4e

Please sign in to comment.