Skip to content

Commit cbb9432

Browse files
committed
linting
1 parent 05e463e commit cbb9432

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cli/organizationroles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func roleToTableView(role codersdk.Role) roleTableRow {
388388
Name: role.Name,
389389
DisplayName: role.DisplayName,
390390
SitePermissions: fmt.Sprintf("%d permissions", len(role.SitePermissions)),
391-
OrganizationPermissions: fmt.Sprintf("%s", orgPermissionString(role.OrganizationPermissions)),
391+
OrganizationPermissions: orgPermissionString(role.OrganizationPermissions),
392392
UserPermissions: fmt.Sprintf("%d permissions", len(role.UserPermissions)),
393393
}
394394
}

enterprise/cli/organization_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cli
1+
package cli_test
22

33
import (
44
"bytes"
@@ -31,7 +31,8 @@ func TestEditOrganizationRoles(t *testing.T) {
3131
Features: license.Features{
3232
codersdk.FeatureCustomRoles: 1,
3333
},
34-
}})
34+
},
35+
})
3536

3637
ctx := testutil.Context(t, testutil.WaitMedium)
3738
inv, root := clitest.New(t, "organization", "roles", "edit", "--stdin")
@@ -53,6 +54,7 @@ func TestEditOrganizationRoles(t *testing.T) {
5354
"assignable": false,
5455
"built_in": false
5556
}`, owner.OrganizationID.String()))
57+
//nolint:gocritic // only owners can edit roles
5658
clitest.SetupConfig(t, client, root)
5759

5860
buf := new(bytes.Buffer)

0 commit comments

Comments
 (0)