Github user alexandrelimassantana commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1483#discussion_r59121072
  
    --- Diff: server/src/com/cloud/network/element/VpcVirtualRouterElement.java 
---
    @@ -466,7 +466,7 @@ public boolean deletePrivateGateway(final 
PrivateGateway gateway) throws Concurr
                 }
             }
     
    -        return result > 0 ? true : false;
    +        return result == routers.size() ? true : false;
         }
    --- End diff --
    
    This line is equivallent to 
    ```Java
    return result == routers.size();
    ```
    
    please take the ternary operator away


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to