Skip to content

Commit c75296b

Browse files
committed
sync codebase
1 parent 7e594de commit c75296b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/com/epam/aidial/cfg/domain/validator/InterceptorValidator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ private void validateInterceptorRunnerAndEndpoint(Interceptor interceptor) {
2626
String configurationEndpoint = interceptor.getConfigurationEndpoint();
2727
String interceptorRunner = interceptor.getInterceptorRunner();
2828

29-
if (endpoint != null && StringUtils.isBlank(endpoint)) {
30-
throw new IllegalArgumentException("Invalid endpoint: '%s'".formatted(endpoint));
31-
}
32-
3329
if (configurationEndpoint != null && EndpointValidator.isInvalidUrl(configurationEndpoint)) {
3430
throw new IllegalArgumentException("Invalid configuration endpoint: '%s'".formatted(configurationEndpoint));
3531
}
3632

37-
if (endpoint == null && StringUtils.isBlank(interceptorRunner)) {
38-
throw new IllegalArgumentException("Missing endpoint and interceptor runner. At least one of them should be specified");
39-
}
40-
4133
if (endpoint != null && StringUtils.isNotBlank(interceptorRunner)) {
4234
throw new IllegalArgumentException(
4335
"Both endpoint: '%s' and interceptor runner: '%s' are specified. Only one of them should be specified"

0 commit comments

Comments
 (0)