mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
another goimports fix
This commit is contained in:
parent
b95070393e
commit
9ebcebee43
3 changed files with 4 additions and 7 deletions
|
@ -322,8 +322,6 @@ func (m *MSC3861UserVerifier) getUserByAccessToken(ctx context.Context, token st
|
||||||
logger.Debugf("PerformDeviceCreationResponse is: %+v", rs)
|
logger.Debugf("PerformDeviceCreationResponse is: %+v", rs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return &requester{
|
return &requester{
|
||||||
Device: device,
|
Device: device,
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
|
@ -358,7 +356,7 @@ func (m *MSC3861UserVerifier) introspectToken(ctx context.Context, token string)
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if c := resp.StatusCode; c < 200 || c >= 300 {
|
if c := resp.StatusCode; c < 200 || c >= 300 {
|
||||||
return nil, errors.New(strings.Join([]string{"The introspection endpoint returned a '", resp.Status ,"' response"}, ""))
|
return nil, errors.New(strings.Join([]string{"The introspection endpoint returned a '", resp.Status, "' response"}, ""))
|
||||||
}
|
}
|
||||||
var ir introspectionResponse
|
var ir introspectionResponse
|
||||||
if err := json.NewDecoder(body).Decode(&ir); err != nil {
|
if err := json.NewDecoder(body).Decode(&ir); err != nil {
|
||||||
|
@ -402,8 +400,7 @@ type OpenIDConfiguration struct {
|
||||||
AccountManagementActionsSupported []string `json:"account_management_actions_supported"`
|
AccountManagementActionsSupported []string `json:"account_management_actions_supported"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func fetchOpenIDConfiguration(httpClient *http.Client, authHostURL string) (*
|
func fetchOpenIDConfiguration(httpClient *http.Client, authHostURL string) (*OpenIDConfiguration, error) {
|
||||||
OpenIDConfiguration, error) {
|
|
||||||
u, err := url.Parse(authHostURL)
|
u, err := url.Parse(authHostURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue