While exploring the express-session
npm package source code, I came across this particular line:
// retrieve the session ID from the cookie
var cookieId = (req.sessionID = getcookie(req, name, secrets));
Do you think it's essentially the same as this line? :
// retrieve the session ID from the cookie
var cookieId = req.sessionID = getcookie(req, name, secrets);
What could be the reason behind this? Is it a coding style preference or am I overlooking something? Appreciate any insights. Thank you.