linting fix _get_group_ids_from_graph_api_response

This commit is contained in:
Ishaan Jaff 2025-04-09 16:25:18 -07:00
parent edf403b537
commit b64216ae3a

View file

@ -1065,8 +1065,9 @@ class MicrosoftSSOHandler:
) -> List[str]: ) -> List[str]:
group_ids = [] group_ids = []
for _object in response.get("value", []) or []: for _object in response.get("value", []) or []:
if _object.get("id") is not None: _group_id = _object.get("id")
group_ids.append(_object.get("id")) if _group_id is not None:
group_ids.append(_group_id)
return group_ids return group_ids
@staticmethod @staticmethod