Skip to content

Commit 86dd089

Browse files
committed
Remove popularity update stats from /debug
1 parent a1a879c commit 86dd089

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

app/lib/shared/handlers.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'package:shelf/shelf.dart' as shelf;
1212

1313
import '../frontend/request_context.dart';
1414

15-
import 'popularity_storage.dart';
1615
import 'urls.dart' as urls;
1716
import 'utils.dart' show jsonUtf8Encoder;
1817
import '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
}

0 commit comments

Comments
 (0)