1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-08-10 22:51:31 +02:00

Remove unnecessary err variable definition

This commit is contained in:
Kevin Kreitner
2021-10-18 09:04:54 +02:00
committed by Joel Speed
parent 0cb8d23222
commit 360c753d6f

View File

@@ -209,7 +209,6 @@ func (s *storedSessionLoader) updateSessionFromStore(req *http.Request, session
func (s *storedSessionLoader) waitForPossibleSessionLock(session *sessionsapi.SessionState, req *http.Request) (bool, error) { func (s *storedSessionLoader) waitForPossibleSessionLock(session *sessionsapi.SessionState, req *http.Request) (bool, error) {
var wasLocked bool var wasLocked bool
var err error
isLocked, err := session.PeekLock(req.Context()) isLocked, err := session.PeekLock(req.Context())
for isLocked { for isLocked {
wasLocked = true wasLocked = true