Merge "Remove redundant if condition check"

This commit is contained in:
Zuul 2019-02-12 16:36:47 +00:00 committed by Gerrit Code Review
commit d0e4cf77b6
1 changed files with 0 additions and 2 deletions

View File

@ -720,8 +720,6 @@ class _DVRAgentInterfaceMixin(object):
# Perform a single query up front for all routers
routers = super(_DVRAgentInterfaceMixin, self)._build_routers_list(
context, routers, gw_ports)
if not routers:
return []
for router in routers:
gw_port_host = self._get_gateway_port_host(
context, router, gw_ports)