Skip to content

Commit a4cd3dc

Browse files
committed
fix linter
1 parent eafd897 commit a4cd3dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ func New(options *Options) *API {
865865
apiKeyMiddleware,
866866
)
867867
r.Post("/", api.postOrganizations)
868-
r.Get("/", api.getOrganizations)
868+
r.Get("/", api.organizations)
869869
r.Route("/{organization}", func(r chi.Router) {
870870
r.Use(
871871
httpmw.ExtractOrganizationParam(options.Database),

coderd/organizations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
// @Tags Organizations
2626
// @Success 200 {object} []codersdk.Organization
2727
// @Router /organizations [get]
28-
func (api *API) getOrganizations(rw http.ResponseWriter, r *http.Request) {
28+
func (api *API) organizations(rw http.ResponseWriter, r *http.Request) {
2929
ctx := r.Context()
3030
organizations, err := api.Database.GetOrganizations(ctx)
3131
if httpapi.Is404Error(err) {

0 commit comments

Comments
 (0)