File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import 'package:shelf/shelf.dart' as shelf;
1212
1313import '../frontend/request_context.dart' ;
1414
15- import 'popularity_storage.dart' ;
1615import 'urls.dart' as urls;
1716import 'utils.dart' show jsonUtf8Encoder;
1817import 'versions.dart' ;
@@ -134,14 +133,7 @@ shelf.Response debugResponse([Map<String, dynamic>? data]) {
134133 'flutter' : toolStableFlutterSdkVersion,
135134 },
136135 },
137- };
138- if (data != null ) {
139- map.addAll (data);
140- }
141- map['popularity' ] = {
142- 'fetched' : popularityStorage.lastFetched? .toIso8601String (),
143- 'count' : popularityStorage.count,
144- 'dateRange' : popularityStorage.dateRange,
136+ ...? data,
145137 };
146138 return jsonResponse (map, indentJson: true );
147139}
You can’t perform that action at this time.
0 commit comments