Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change late to final
  • Loading branch information
buenaflor committed Dec 15, 2023
commit b93288a1e3e6a2fdfbc8b3d1ca473b64542c044a
9 changes: 4 additions & 5 deletions dart/lib/src/transport/http_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HttpTransport implements Transport {

final RateLimiter _rateLimiter;

late HttpTransportRequestHandler _requestHandler;
final HttpTransportRequestHandler _requestHandler;

factory HttpTransport(SentryOptions options, RateLimiter rateLimiter) {
if (options.httpClient is NoOpClient) {
Expand All @@ -28,10 +28,9 @@ class HttpTransport implements Transport {
return HttpTransport._(options, rateLimiter);
}

HttpTransport._(this._options, this._rateLimiter) {
final dsn = Dsn.parse(_options.dsn!);
_requestHandler = HttpTransportRequestHandler(_options, dsn.postUri);
}
HttpTransport._(this._options, this._rateLimiter)
: _requestHandler = HttpTransportRequestHandler(
_options, Dsn.parse(_options.dsn!).postUri);

@override
Future<SentryId?> send(SentryEnvelope envelope) async {
Expand Down