Adding missing return nil
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-09-15 16:17:33 +02:00
parent c17cd92268
commit 014898b8df
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -110,6 +110,7 @@ func setCachedTokenResponseValue(conn redis.Conn, key string, r *auth.TokenRespo
return fmt.Errorf("error while setting token: %v", err)
}
conn.Do("EXPIRE", key, uint64(10*time.Minute/time.Second))
return nil
}
// getCachedValue gets the cached value from Redis