mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-03-09 12:49:42 +00:00
Remove extra parens.
This commit is contained in:
parent
d5e1392840
commit
5d21af4849
@ -46,13 +46,12 @@ public class DefaultBackoffStrategy implements ConnectionBackoffStrategy {
|
||||
|
||||
@Override
|
||||
public boolean shouldBackoff(final Throwable t) {
|
||||
return (t instanceof SocketTimeoutException
|
||||
|| t instanceof ConnectException);
|
||||
return t instanceof SocketTimeoutException || t instanceof ConnectException;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldBackoff(final HttpResponse resp) {
|
||||
return (resp.getCode() == HttpStatus.SC_SERVICE_UNAVAILABLE);
|
||||
return resp.getCode() == HttpStatus.SC_SERVICE_UNAVAILABLE;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user