Skip to content

Commit 9a56546

Browse files
Rename to createGroups
1 parent a1c84ac commit 9a56546

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

extensions/ql-vscode/src/model-editor/methods-usage/methods-usage-data-provider.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ export class MethodsUsageDataProvider
7373
this.modifiedMethodSignatures !== modifiedMethodSignatures
7474
) {
7575
this.methods = methods;
76-
this.sortedTreeItems = createTreeItems(
77-
sortMethodsInGroups(methods, mode),
78-
);
76+
this.sortedTreeItems = createTreeItems(createGroups(methods, mode));
7977
this.databaseItem = databaseItem;
8078
this.sourceLocationPrefix =
8179
await this.databaseItem.getSourceLocationPrefix(this.cliServer);
@@ -246,7 +244,7 @@ function urlValueResolvablesAreEqual(
246244
return false;
247245
}
248246

249-
function sortMethodsInGroups(methods: readonly Method[], mode: Mode): Method[] {
247+
function createGroups(methods: readonly Method[], mode: Mode): Method[] {
250248
const grouped = groupMethods(methods, mode);
251249
return sortGroupNames(grouped).flatMap((groupName) => grouped[groupName]);
252250
}

0 commit comments

Comments
 (0)