fix lint
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Meutel 2019-09-11 17:11:43 +02:00
parent 2d3ffae201
commit 5b6a6feaeb
2 changed files with 2 additions and 1 deletions

View File

@ -493,6 +493,7 @@ func (app *Bouquins) IndexPage(res http.ResponseWriter, req *http.Request) error
return app.render(res, tplIndex, model) return app.render(res, tplIndex, model)
} }
// CalibreFileServer serves files from calibre path
func (app *Bouquins) CalibreFileServer() http.Handler { func (app *Bouquins) CalibreFileServer() http.Handler {
calibre := app.Conf.CalibrePath calibre := app.Conf.CalibrePath
handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre))) handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre)))

View File

@ -9,7 +9,7 @@ import (
"golang.org/x/oauth2" "golang.org/x/oauth2"
) )
// GithubProvider implements OAuth2 client with github.com // GiteaProvider implements OAuth2 client with custom gitea server
type GiteaProvider string type GiteaProvider string
type giteaProfile struct { type giteaProfile struct {