tuteng commented on a change in pull request #321:
URL: https://github.com/apache/pulsar-manager/pull/321#discussion_r459840759



##########
File path: 
src/main/java/org/apache/pulsar/manager/dao/NamespacesRepositoryImpl.java
##########
@@ -99,6 +99,10 @@ public void remove(String tenant, String namespace) {
 
     @Override
     public long save(NamespaceEntity namespacesEntity) {
+        NamespaceEntity entity = 
namespacesMapper.findByTenantNamespace(namespacesEntity.getTenant(),namespacesEntity.getNamespace());
+        if (entity!=null){

Review comment:
       You can try to format the code style:
   
   ```
   NamespaceEntity entity = 
namespacesMapper.findByTenantNamespace(namespacesEntity.getTenant(), 
namespacesEntity.getNamespace());
   if (entity != null) {
        return 0;
   }
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to