Clean up some more TODOs

This commit is contained in:
Asger F
2025-01-17 11:36:08 +01:00
parent 370b17c0f5
commit 8b8d174781

View File

@@ -689,14 +689,12 @@ export class QueryHistoryManager extends DisposableObject {
singleItem: QueryHistoryInfo,
multiSelect: QueryHistoryInfo[] | undefined,
) {
// TODO: reduce duplication with 'handleCompareWith'
multiSelect ||= [singleItem];
if (
!this.isSuccessfulCompletedLocalQueryInfo(singleItem) ||
!multiSelect.every(this.isSuccessfulCompletedLocalQueryInfo)
) {
// TODO: support performance comparison with partially-evaluated query (technically possible)
throw new Error(
"Please only select local queries that have completed successfully.",
);