Skip to content

Commit 13eba3e

Browse files
committed
[#11094] fix(client-python): remove unnecessary audit null check in GroupDTO builder
1 parent 7e44f16 commit 13eba3e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • clients/client-python/gravitino/dto/authorization

clients/client-python/gravitino/dto/authorization/group_dto.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,4 @@ def with_audit(self, audit: AuditDTO) -> GroupDTO.Builder:
8888
def build(self) -> GroupDTO:
8989
if not self._name:
9090
raise ValueError("name cannot be null or empty")
91-
if self._audit is None:
92-
raise ValueError("audit cannot be null")
9391
return GroupDTO(self._name, self._roles, self._audit)

0 commit comments

Comments
 (0)