Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit ab15e6c

Browse files
committed
rename variables
1 parent 257fcda commit ab15e6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

initializers/v3client.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ function getMemberGroups(connection, callback) {
213213
return item.id;
214214
});
215215

216-
var result = [];
216+
var memberGroups = [];
217217

218218
groupIds.forEach(function(groupId) {
219-
result.push(groupId);
219+
memberGroups.push(groupId);
220220
callService({
221221
url: v3url + 'groups/' + groupId + '/getParentGroup?oneLevel=false',
222222
method: 'GET',
@@ -230,16 +230,16 @@ function getMemberGroups(connection, callback) {
230230
var groupResponse = body.result.content;
231231
console.log(groupResponse);
232232
while(groupResponse) {
233-
result.push(groupResponse.id);
233+
memberGroups.push(groupResponse.id);
234234
groupResponse = groupResponse.parentGroup;
235235
console.log(groupResponse);
236236
}
237237
}
238238
})
239239
});
240240

241-
console.log("member groups: " + result);
242-
callback(null, result);
241+
console.log("member groups: " + memberGroups);
242+
callback(null, memberGroups);
243243
}
244244
});
245245
});

0 commit comments

Comments
 (0)