Skip to content

Commit e80dab5

Browse files
committed
make fmt
1 parent 3a388dd commit e80dab5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

coderd/coderdtest/authorize.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ func (d *FakeAuthorizer) AlwaysReturn(err error) *FakeAuthorizer {
373373
func (d *FakeAuthorizer) Authorize(ctx context.Context, subject rbac.Subject, action policy.Action, object rbac.Object) error {
374374
if d.ConditionalReturn != nil {
375375
return d.ConditionalReturn(ctx, subject, action, object)
376-
377376
}
378377
return nil
379378
}

enterprise/coderd/groups.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,8 @@ func (api *API) group(rw http.ResponseWriter, r *http.Request) {
392392
// @Success 200 {array} codersdk.Group
393393
// @Router /organizations/{organization}/groups [get]
394394
func (api *API) groupsByOrganization(rw http.ResponseWriter, r *http.Request) {
395-
var (
396-
org = httpmw.OrganizationParam(r)
397-
)
395+
org := httpmw.OrganizationParam(r)
396+
398397
values := r.URL.Query()
399398
values.Set("organization", org.ID.String())
400399
r.URL.RawQuery = values.Encode()
@@ -412,9 +411,7 @@ func (api *API) groupsByOrganization(rw http.ResponseWriter, r *http.Request) {
412411
// @Success 200 {array} codersdk.Group
413412
// @Router /groups [get]
414413
func (api *API) groups(rw http.ResponseWriter, r *http.Request) {
415-
var (
416-
ctx = r.Context()
417-
)
414+
ctx := r.Context()
418415

419416
var filter database.GetGroupsParams
420417
parser := httpapi.NewQueryParamParser()

0 commit comments

Comments
 (0)