Statement unnecessarily nested within else clause.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1698184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2015-08-27 15:26:32 +00:00
parent 6b8214d4b7
commit 64371f7410
1 changed files with 7 additions and 8 deletions

View File

@ -253,15 +253,14 @@ public class MemcachedHttpCacheStorage implements HttpCacheStorage {
putEntry(url, updatedEntry);
return;
}
final byte[] updatedBytes = serializeEntry(url, updatedEntry);
final CASResponse casResult = client.cas(key, v.getCas(),
updatedBytes);
if (casResult != CASResponse.OK) {
numRetries++;
} else {
final byte[] updatedBytes = serializeEntry(url, updatedEntry);
final CASResponse casResult = client.cas(key, v.getCas(),
updatedBytes);
if (casResult != CASResponse.OK) {
numRetries++;
} else {
return;
}
return;
}
} catch (final OperationTimeoutException ex) {
throw new MemcachedOperationTimeoutException(ex);