From 5b6a6feaeb8661a19eae5960991327493d403795 Mon Sep 17 00:00:00 2001 From: Meutel Date: Wed, 11 Sep 2019 17:11:43 +0200 Subject: [PATCH] fix lint --- bouquins/bouquins.go | 1 + bouquins/gitea.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bouquins/bouquins.go b/bouquins/bouquins.go index 79faefa..2cd908a 100644 --- a/bouquins/bouquins.go +++ b/bouquins/bouquins.go @@ -493,6 +493,7 @@ func (app *Bouquins) IndexPage(res http.ResponseWriter, req *http.Request) error return app.render(res, tplIndex, model) } +// CalibreFileServer serves files from calibre path func (app *Bouquins) CalibreFileServer() http.Handler { calibre := app.Conf.CalibrePath handler := http.StripPrefix(URLCalibre, http.FileServer(http.Dir(calibre))) diff --git a/bouquins/gitea.go b/bouquins/gitea.go index 98dea22..808da3c 100644 --- a/bouquins/gitea.go +++ b/bouquins/gitea.go @@ -9,7 +9,7 @@ import ( "golang.org/x/oauth2" ) -// GithubProvider implements OAuth2 client with github.com +// GiteaProvider implements OAuth2 client with custom gitea server type GiteaProvider string type giteaProfile struct {