From 26c56d08d97616b40d7d38d23d02b5d2ccd28e27 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 10 Jan 2018 22:03:15 +0100 Subject: [PATCH] Small cleanup. --- gfitsync.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 { -- 2.11.0