Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4d3806

Browse files
committed
chore: lint
1 parent ea2e908 commit c4d3806

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/usereditroles.go

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func (r *RootCmd) userEditRoles() *serpent.Command {
7373
if err != nil {
7474
return xerrors.Errorf("selecting roles for user: %w", err)
7575
}
76-
7776
}
7877

7978
_, err = client.UpdateUserRoles(ctx, user.Username, codersdk.UpdateRoles{

cli/usereditroles_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ func TestUserEditRoles(t *testing.T) {
2323

2424
client := coderdtest.New(t, nil)
2525
owner := coderdtest.CreateFirstUser(t, client)
26+
userAdmin, _ := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID, rbac.RoleOwner())
2627
_, member := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID, rbac.RoleMember())
2728

2829
inv, root := clitest.New(t, "users", "edit-roles", member.Username, fmt.Sprintf("--roles=%s", strings.Join(roles, ",")))
29-
clitest.SetupConfig(t, client, root)
30+
clitest.SetupConfig(t, userAdmin, root)
3031

3132
// Create context with timeout
3233
ctx := testutil.Context(t, testutil.WaitShort)

0 commit comments

Comments
 (0)