remove repeated assignment in Save(), fixes #2

This commit is contained in:
Anton Lindström 2014-06-09 16:19:20 +00:00
parent 5c8fa0fe70
commit b205a0ee64
1 changed files with 0 additions and 1 deletions

View File

@ -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)), "=")