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:
parent
6b8214d4b7
commit
64371f7410
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue