Skip to content

Commit eaca85e

Browse files
committed
Use "foreach"
1 parent 40487fb commit eaca85e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/features/PowerShellFindModule.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export function registerPowerShellFindModuleCommand(client: LanguageClient): voi
3232

3333
vscode.window.setStatusBarMessage(GetCurrentTime() + " Querying PowerShell Gallery");
3434
client.sendRequest(FindModuleRequest.type, null).then((modules) => {
35-
for(var i=0 ; i < modules.moduleList.length; i++) {
36-
var module = modules.moduleList[i];
37-
items.push({ label: module.name, description: module.description });
38-
}
35+
for(var item in modules) {
36+
items.push({ label: modules[item].name, description: modules[item].description });
37+
};
3938

4039
vscode.window.setStatusBarMessage("");
4140
Window.showQuickPick(items).then((selection) => {

0 commit comments

Comments
 (0)