From: Florian Forster Date: Wed, 10 Jan 2018 21:03:15 +0000 (+0100) Subject: Small cleanup. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=26c56d08d97616b40d7d38d23d02b5d2ccd28e27;p=kraftakt.git Small cleanup. --- diff --git a/gfitsync.go b/gfitsync.go index 898fb98..25df282 100644 --- a/gfitsync.go +++ b/gfitsync.go @@ -40,10 +40,6 @@ func (hndl ContextHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { type AuthenticatedHandler func(context.Context, http.ResponseWriter, *http.Request, *app.User) error -type User struct { - ID string -} - func (hndl AuthenticatedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) @@ -92,8 +88,7 @@ func indexHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u } func setupHandler(w http.ResponseWriter, r *http.Request) { - url := fitbit.AuthURL() - http.Redirect(w, r, url, http.StatusTemporaryRedirect) + http.Redirect(w, r, fitbit.AuthURL(), http.StatusTemporaryRedirect) } func fitbitGrantHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u *app.User) error {