Skip to content

Commit

Permalink
fix: remove unnecessary non-null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Bataran committed Dec 21, 2021
1 parent 84d9768 commit 1c72afb
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 @@ -131,7 +131,7 @@ export class Span implements api.Span, ReadableSpan {
startTime?: api.TimeInput
): this {
if (this._isSpanEnded()) return this;
if (this._spanLimits.eventCountLimit! === 0) {
if (this._spanLimits.eventCountLimit === 0) {
api.diag.warn('No events allowed.');
return this;
}
Expand Down

0 comments on commit 1c72afb

Please sign in to comment.