Skip to content

Commit 2079f34

Browse files
Calin LupasCalin Lupas
authored andcommitted
Refactor IsValidCreate method in TeamRequestModel
Removed TeamVisibility check from IsValidCreate. The method now validates only RequestType, TeamName, and TeamDescription for team creation.
1 parent e5d3b86 commit 2079f34

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/DevExcelerateApi/Models/TeamRequestModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ public bool IsValidCreate()
102102
{
103103
return RequestType == RequestType.CREATE_TEAM &&
104104
!string.IsNullOrEmpty(TeamName) &&
105-
!string.IsNullOrEmpty(TeamDescription) &&
106-
!string.IsNullOrEmpty(TeamVisibility);
105+
!string.IsNullOrEmpty(TeamDescription);
107106
}
108107

109108
public bool IsValidUpdate()

0 commit comments

Comments
 (0)