Skip to content

Commit 26c9418

Browse files
committed
update
1 parent f97d372 commit 26c9418

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dart/lib/src/sentry_tracer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class SentryTracer extends ISentrySpan {
377377

378378
_sentryTraceContextHeader = SentryTraceContextHeader(
379379
_rootSpan.context.traceId,
380-
_hub.options.parsedDsn!.publicKey,
380+
_hub.options.parsedDsn.publicKey,
381381
release: _hub.options.release,
382382
environment: _hub.options.environment,
383383
userId: null, // because of PII not sending it for now

dart/lib/src/transport/http_transport.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class HttpTransport implements Transport {
3131

3232
HttpTransport._(this._options, this._rateLimiter)
3333
: _requestHandler =
34-
HttpTransportRequestHandler(_options, _options.parsedDsn!.postUri);
34+
HttpTransportRequestHandler(_options, _options.parsedDsn.postUri);
3535

3636
@override
3737
Future<SentryId?> send(SentryEnvelope envelope) async {

dart/lib/src/transport/http_transport_request_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class HttpTransportRequestHandler {
1717
late _CredentialBuilder _credentialBuilder;
1818

1919
HttpTransportRequestHandler(this._options, this._requestUri)
20-
: _dsn = _options.parsedDsn!,
20+
: _dsn = _options.parsedDsn,
2121
_headers = _buildHeaders(
2222
_options.platformChecker.isWeb,
2323
_options.sentryClientName,

0 commit comments

Comments
 (0)