Skip to content

Commit d7f7868

Browse files
committed
Fix analysis issues
1 parent fbd08b8 commit d7f7868

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

.github/workflows/dart.yml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/http_profile/lib/http_profile.dart

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:async' show StreamController, StreamSink;
6-
import 'dart:developer' show addHttpClientProfilingData, Service, Timeline;
6+
import 'dart:developer' show Service, addHttpClientProfilingData;
77
import 'dart:io' show HttpClient, HttpClientResponseCompressionState;
88
import 'dart:isolate' show Isolate;
99

@@ -288,8 +288,18 @@ final class HttpClientRequestProfile {
288288
/// Usage example:
289289
///
290290
/// ```dart
291-
/// profile.addEvent(HttpProfileRequestEvent(DateTime.now(), "Connection Established");
292-
/// profile.addEvent(HttpProfileRequestEvent(DateTime.now(), "Remote Disconnected");
291+
/// profile.addEvent(
292+
/// HttpProfileRequestEvent(
293+
/// timestamp: DateTime.now(),
294+
/// name: "Connection Established",
295+
/// ),
296+
/// );
297+
/// profile.addEvent(
298+
/// HttpProfileRequestEvent(
299+
/// timestamp: DateTime.now(),
300+
/// name: "Remote Disconnected",
301+
/// ),
302+
/// );
293303
/// ```
294304
void addEvent(HttpProfileRequestEvent event) {
295305
(_data['events'] as List<Map<String, dynamic>>).add(event._toJson());

pkgs/http_profile/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish_to: none
88

99
environment:
1010
# TODO(derekxu16): Change the following constraint to ^3.4.0 before publishing this package.
11-
sdk: ^3.4.0-149.0.dev
11+
sdk: ^3.4.0-154.0.dev
1212

1313
dependencies:
1414
test: ^1.24.9

pkgs/http_profile/test/populating_profiles_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:async';
6-
import 'dart:developer' show getHttpClientProfilingData, Service;
6+
import 'dart:developer' show Service, getHttpClientProfilingData;
77
import 'dart:io';
88
import 'dart:isolate' show Isolate;
99

0 commit comments

Comments
 (0)