Refactor test case for member update to remove unnecessary whitespace

- Cleaned up the `TestMemberUpdateRobot` function by removing redundant blank lines, improving code readability and maintainability.
This commit is contained in:
Max 2025-10-27 13:43:27 +08:00
parent 1e01ed768e
commit 26b690246d

View file

@ -1907,13 +1907,13 @@ func TestMemberUpdateRobot(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
memberID, _ := tc.setupFunc()
// Use non-existent team ID for the specific test case
targetTeamID := teamID
if tc.name == "update robot in non-existent team" {
targetTeamID = "non-existent-team-id"
}
requestURL := serverURL + baseURL + "/user/teams/" + targetTeamID + "/members/robots/" + memberID
var req *http.Request