From b205a0ee64035484d3b1d67ed23eb9b89a28d7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Lindstr=C3=B6m?= Date: Mon, 9 Jun 2014 16:19:20 +0000 Subject: [PATCH] remove repeated assignment in Save(), fixes #2 --- pgstore.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pgstore.go b/pgstore.go index 4182354..e26e649 100644 --- a/pgstore.go +++ b/pgstore.go @@ -103,7 +103,6 @@ func (db *PGStore) Save(r *http.Request, w http.ResponseWriter, session *session if session.ID == "" { // Generate a random session ID key suitable for storage in the DB - session.ID = string(securecookie.GenerateRandomKey(32)) session.ID = strings.TrimRight( base32.StdEncoding.EncodeToString( securecookie.GenerateRandomKey(32)), "=")