We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab9e708 commit e72061aCopy full SHA for e72061a
enterprise/coderd/roles.go
@@ -93,7 +93,8 @@ func (api *API) patchOrgRoles(rw http.ResponseWriter, r *http.Request) {
93
},
94
95
ExcludeOrgRoles: false,
96
- OrganizationID: organization.ID,
+ // Linter requires all fields to be set. This field is not actually required.
97
+ OrganizationID: organization.ID,
98
})
99
// If it is a 404 (not found) error, ignore it.
100
if err != nil && !httpapi.Is404Error(err) {
@@ -167,7 +168,8 @@ func (api *API) deleteOrgRole(rw http.ResponseWriter, r *http.Request) {
167
168
169
170
171
172
173
174
if err != nil {
175
httpapi.InternalServerError(rw, err)
0 commit comments