Skip to content

Commit b93288a

Browse files
committed
change late to final
1 parent 44ea944 commit b93288a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dart/lib/src/transport/http_transport.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class HttpTransport implements Transport {
1818

1919
final RateLimiter _rateLimiter;
2020

21-
late HttpTransportRequestHandler _requestHandler;
21+
final HttpTransportRequestHandler _requestHandler;
2222

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

31-
HttpTransport._(this._options, this._rateLimiter) {
32-
final dsn = Dsn.parse(_options.dsn!);
33-
_requestHandler = HttpTransportRequestHandler(_options, dsn.postUri);
34-
}
31+
HttpTransport._(this._options, this._rateLimiter)
32+
: _requestHandler = HttpTransportRequestHandler(
33+
_options, Dsn.parse(_options.dsn!).postUri);
3534

3635
@override
3736
Future<SentryId?> send(SentryEnvelope envelope) async {

0 commit comments

Comments
 (0)