Skip to content

Commit ab7ec58

Browse files
Rename allItemsSelected => allSelectedItems
1 parent 1a87ad8 commit ab7ec58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/ql-vscode/src/query-history/query-history-manager.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,24 +1082,24 @@ export class QueryHistoryManager extends DisposableObject {
10821082

10831083
private async findOtherQueryToCompare(
10841084
fromItem: CompletedLocalQueryInfo,
1085-
allItemsSelected: CompletedLocalQueryInfo[],
1085+
allSelectedItems: CompletedLocalQueryInfo[],
10861086
): Promise<CompletedLocalQueryInfo | undefined> {
10871087
const dbName = fromItem.initialInfo.databaseInfo.name;
10881088

10891089
// If exactly 2 items are selected, return the one that
10901090
// isn't being used as the "from" item.
1091-
if (allItemsSelected.length === 2) {
1091+
if (allSelectedItems.length === 2) {
10921092
const otherItem =
1093-
fromItem === allItemsSelected[0]
1094-
? allItemsSelected[1]
1095-
: allItemsSelected[0];
1093+
fromItem === allSelectedItems[0]
1094+
? allSelectedItems[1]
1095+
: allSelectedItems[0];
10961096
if (otherItem.initialInfo.databaseInfo.name !== dbName) {
10971097
throw new Error("Query databases must be the same.");
10981098
}
10991099
return otherItem;
11001100
}
11011101

1102-
if (allItemsSelected.length > 2) {
1102+
if (allSelectedItems.length > 2) {
11031103
throw new Error("Please select no more than 2 queries.");
11041104
}
11051105

0 commit comments

Comments
 (0)