Remove duplicate null check

This commit is contained in:
utsman
2017-02-25 03:13:24 +09:00
parent 1d5a68c9e7
commit cb9d9bd8a1

View File

@@ -54,7 +54,7 @@ public class SimpleRouteLocator implements RouteLocator, Ordered {
public SimpleRouteLocator(String servletPath, ZuulProperties properties) {
this.properties = properties;
if (servletPath != null && StringUtils.hasText(servletPath)) {
if (StringUtils.hasText(servletPath)) {
this.dispatcherServletPath = servletPath;
}