Skip to content

Commit 5f96af3

Browse files
pqCommit Queue
authored andcommitted
[cq] fix ProducerRequestPerformance to properly set operation name
Change-Id: Ib45821959837c6eaaa572601fa08d727d824d42e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/417101 Auto-Submit: Phil Quitslund <[email protected]> Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent a90bb09 commit 5f96af3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/analysis_server_plugin/lib/src/correction/performance.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@ abstract class ProducerRequestPerformance extends RequestPerformance {
2121
final List<ProducerTiming> producerTimings;
2222

2323
ProducerRequestPerformance({
24-
// TODO(srawlins): This should probably be used in the super call?
25-
// ignore: avoid_unused_constructor_parameters
26-
required String operation,
24+
required super.operation,
2725
required this.path,
2826
required super.performance,
2927
super.requestLatency,
3028
super.startTime,
3129
required String content,
3230
required int offset,
3331
required this.producerTimings,
34-
}) : snippet = content.withCaretAt(offset),
35-
super(operation: 'GetAssists');
32+
}) : snippet = content.withCaretAt(offset);
3633

3734
int get elapsedInMilliseconds => performance.elapsed.inMilliseconds;
3835
}

0 commit comments

Comments
 (0)