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



##########
File path: 
src/main/java/org/apache/pulsar/manager/dao/NamespacesRepositoryImpl.java
##########
@@ -105,6 +105,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:
       Try format code:
   
   ```
   NamespaceEntity entity = 
namespacesMapper.findByTenantNamespace(namespacesEntity.getTenant(), 
namespacesEntity.getNamespace());
   if (entity != null) {
   ```




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