Fix code format.

This commit is contained in:
Yang Luo
2021-02-14 00:54:42 +08:00
parent c81118feff
commit 101d418257
4 changed files with 18 additions and 25 deletions

View File

@ -89,7 +89,7 @@ func (c *ApiController) AuthGithub() {
if err != nil {
panic(err)
}
req.Header.Add("Authorization", "token " + token.AccessToken)
req.Header.Add("Authorization", "token "+token.AccessToken)
response, err := httpClient.Do(req)
if err != nil {
panic(err)
@ -115,7 +115,7 @@ func (c *ApiController) AuthGithub() {
if err != nil {
panic(err)
}
req.Header.Add("Authorization", "token " + token.AccessToken)
req.Header.Add("Authorization", "token "+token.AccessToken)
response2, err := httpClient.Do(req)
if err != nil {
panic(err)
@ -175,6 +175,5 @@ func (c *ApiController) AuthGithub() {
}
c.Data["json"] = resp
c.ServeJSON()
}