removed fmt

This commit is contained in:
ston1th 2022-07-10 01:52:29 +02:00
commit 261ebed165

View file

@ -6,7 +6,6 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt"
"html/template" "html/template"
"net/http" "net/http"
"strconv" "strconv"
@ -375,12 +374,10 @@ func (c *Context) RejectConsent(challenge string) (rdr string, err error) {
} }
func (c *Context) Consent(challenge string) (ci *consentInfo, err error) { func (c *Context) Consent(challenge string) (ci *consentInfo, err error) {
fmt.Println(challenge)
req := c.Srv.API.AdminApi.GetConsentRequest(context.Background()). req := c.Srv.API.AdminApi.GetConsentRequest(context.Background()).
ConsentChallenge(challenge) ConsentChallenge(challenge)
_, resp, err := req.Execute() _, resp, err := req.Execute()
if err != nil { if err != nil {
fmt.Println(err)
return return
} }
defer resp.Body.Close() defer resp.Body.Close()