Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b9790a

Browse files
committed
chore: add comments to explain populated field
1 parent5033ee8 commit3b9790a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎enterprise/coderd/roles.go

Lines changed: 4 additions & 2 deletions
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
iferr!=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
iferr!=nil {
173175
httpapi.InternalServerError(rw,err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp