Merge pull request #1730 from utsman/rm-dupl-check

Remove duplicate null check
This commit is contained in:
Ryan Baxter
2017-02-24 14:05:26 -05:00
committed by GitHub

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;
}