remove repeated assignment in Save(), fixes #2
This commit is contained in:
parent
5c8fa0fe70
commit
b205a0ee64
|
@ -103,7 +103,6 @@ func (db *PGStore) Save(r *http.Request, w http.ResponseWriter, session *session
|
||||||
|
|
||||||
if session.ID == "" {
|
if session.ID == "" {
|
||||||
// Generate a random session ID key suitable for storage in the DB
|
// Generate a random session ID key suitable for storage in the DB
|
||||||
session.ID = string(securecookie.GenerateRandomKey(32))
|
|
||||||
session.ID = strings.TrimRight(
|
session.ID = strings.TrimRight(
|
||||||
base32.StdEncoding.EncodeToString(
|
base32.StdEncoding.EncodeToString(
|
||||||
securecookie.GenerateRandomKey(32)), "=")
|
securecookie.GenerateRandomKey(32)), "=")
|
||||||
|
|
Loading…
Reference in New Issue