Skip to content

Commit e72061a

Browse files
committed
chore: add comments to explain populated field
1 parent ab9e708 commit e72061a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

enterprise/coderd/roles.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ func (api *API) patchOrgRoles(rw http.ResponseWriter, r *http.Request) {
9393
},
9494
},
9595
ExcludeOrgRoles: false,
96-
OrganizationID: organization.ID,
96+
// Linter requires all fields to be set. This field is not actually required.
97+
OrganizationID: organization.ID,
9798
})
9899
// If it is a 404 (not found) error, ignore it.
99100
if err != nil && !httpapi.Is404Error(err) {
@@ -167,7 +168,8 @@ func (api *API) deleteOrgRole(rw http.ResponseWriter, r *http.Request) {
167168
},
168169
},
169170
ExcludeOrgRoles: false,
170-
OrganizationID: organization.ID,
171+
// Linter requires all fields to be set. This field is not actually required.
172+
OrganizationID: organization.ID,
171173
})
172174
if err != nil {
173175
httpapi.InternalServerError(rw, err)

0 commit comments

Comments
 (0)