From 24bf405788c64f243015bdef4f945ca3c2499618 Mon Sep 17 00:00:00 2001 From: Tim Garrity <40044553+Salamandastron1@users.noreply.github.com> Date: Sun, 17 Oct 2021 15:54:12 -0400 Subject: [PATCH] NewV4() returns one value --- 030_sessions/08_expire-session/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/030_sessions/08_expire-session/session.go b/030_sessions/08_expire-session/session.go index 94488c1b..45f272d6 100644 --- a/030_sessions/08_expire-session/session.go +++ b/030_sessions/08_expire-session/session.go @@ -11,7 +11,7 @@ func getUser(w http.ResponseWriter, req *http.Request) user { // get cookie c, err := req.Cookie("session") if err != nil { - sID, _ := uuid.NewV4() + sID := uuid.NewV4() c = &http.Cookie{ Name: "session", Value: sID.String(),