chore: format Go more aggressively

This commit is contained in:
Ammar Bandukwala
2023-02-18 18:32:09 -06:00
committed by GitHub
parent 19ae411f05
commit f05609b4da
97 changed files with 411 additions and 413 deletions

View File

@ -15,8 +15,7 @@ import (
"github.com/coder/coder/codersdk"
)
type testOAuth2Provider struct {
}
type testOAuth2Provider struct{}
func (*testOAuth2Provider) AuthCodeURL(state string, _ ...oauth2.AuthCodeOption) string {
return "?state=" + url.QueryEscape(state)

View File

@ -11,8 +11,10 @@ import (
"github.com/coder/coder/codersdk"
)
type organizationParamContextKey struct{}
type organizationMemberParamContextKey struct{}
type (
organizationParamContextKey struct{}
organizationMemberParamContextKey struct{}
)
// OrganizationParam returns the organization from the ExtractOrganizationParam handler.
func OrganizationParam(r *http.Request) database.Organization {

View File

@ -21,9 +21,7 @@ func TestOrganizationParam(t *testing.T) {
t.Parallel()
setupAuthentication := func(db database.Store) (*http.Request, database.User) {
var (
r = httptest.NewRequest("GET", "/", nil)
)
r := httptest.NewRequest("GET", "/", nil)
user := dbgen.User(t, db, database.User{
ID: uuid.New(),