B: gofmt
This commit is contained in:
parent
f703f2d1ab
commit
6f1ce7dcc1
|
@ -1,6 +1,5 @@
|
||||||
package services
|
package services
|
||||||
|
|
||||||
|
|
||||||
type Series struct {
|
type Series struct {
|
||||||
Id string `jsonapi:"primary,Series"`
|
Id string `jsonapi:"primary,Series"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package services
|
package services
|
||||||
|
|
||||||
|
|
||||||
type ServiceType struct {
|
type ServiceType struct {
|
||||||
Id string `jsonapi:"primary,ServiceType"`
|
Id string `jsonapi:"primary,ServiceType"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,6 @@ func LoginHandler(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if user == nil {
|
if user == nil {
|
||||||
log.Warnf("No user was found for: %s", reqBody.Email)
|
log.Warnf("No user was found for: %s", reqBody.Email)
|
||||||
renderTempl(c, templates.LoginPage(fmt.Sprintf("No user found for %s", reqBody.Email)))
|
renderTempl(c, templates.LoginPage(fmt.Sprintf("No user found for %s", reqBody.Email)))
|
||||||
|
|
|
@ -68,6 +68,5 @@ func DashboardPage(c *gin.Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
renderTempl(c, templates.DashboardPage(user, vendors, actions))
|
renderTempl(c, templates.DashboardPage(user, vendors, actions))
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,6 @@ func ReceiveYoutubeOauth(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
oauthResp := &models.OauthCredential{}
|
oauthResp := &models.OauthCredential{}
|
||||||
err = json.Unmarshal(rawBody, oauthResp)
|
err = json.Unmarshal(rawBody, oauthResp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -50,5 +50,3 @@ func (va *VendorAccount) Token() *oauth2.Token {
|
||||||
Expiry: va.OauthCredentials.ExpiresAt,
|
Expiry: va.OauthCredentials.ExpiresAt,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue