Remove uncessary err != nil check. (#3346)

This commit is contained in:
Bala FA
2016-11-24 15:22:33 -08:00
committed by Harshavardhana
parent a822b8e782
commit 39f9324616
2 changed files with 5 additions and 5 deletions

View File

@@ -180,7 +180,7 @@ func (authClient *AuthRPCClient) Call(serviceMethod string, args interface {
err = authClient.rpc.Call(serviceMethod, args, reply)
// Invalidate token, and mark it for re-login on subsequent reconnect.
if err != nil && err == rpc.ErrShutdown {
if err == rpc.ErrShutdown {
authClient.mu.Lock()
authClient.isLoggedIn = false
authClient.mu.Unlock()