File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments