Skip to content

Commit c148ed7

Browse files
Fix lint
1 parent eae51cd commit c148ed7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/services/groups.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,13 @@ class GroupService {
319319
* cache. Defaults to 5 minutes.
320320
* @return {Promise} Resolves to ID array.
321321
*/
322-
async getGroupTreeIds(rootGroupId, maxage = 5 * 60 * 1000) {
323-
324-
let url = `/groups/${rootGroupId}?flattenGroupIdTree=true`;
322+
async getGroupTreeIds(rootGroupId) {
323+
const url = `/groups/${rootGroupId}?flattenGroupIdTree=true`;
325324
const response = await this.private.api.get(url);
326325
const responseJSON = handleApiResponse(response);
327326

328-
const treeIds = responseJSON.flattenGroupIdTree
329-
treeIds.push(rootGroupId)
327+
const treeIds = responseJSON.flattenGroupIdTree;
328+
treeIds.push(rootGroupId);
330329

331330
return treeIds;
332331
}
@@ -397,4 +396,4 @@ export function getService(tokenV3) {
397396
return lastInstance;
398397
}
399398

400-
export default undefined;
399+
export default undefined;

0 commit comments

Comments
 (0)