HorizonNet commented on a change in pull request #248: NIFIREG-227 
GitFlowPersistenceProvider option to clone repo on startup
URL: https://github.com/apache/nifi-registry/pull/248#discussion_r348787213
 
 

 ##########
 File path: 
nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/provider/flow/git/GitFlowPersistenceProvider.java
 ##########
 @@ -73,6 +74,12 @@ public void onConfigured(ProviderConfigurationContext 
configurationContext) thro
 
         final String remoteUser = props.get(REMOTE_ACCESS_USER);
         final String remotePassword = props.get(REMOTE_ACCESS_PASSWORD);
+        final String remoteRepo = props.get(REMOTE_CLONE_REPOSITORY);
+        if (!isEmpty(remoteRepo)) {
+            if (isEmpty(remoteUser) || isEmpty(remotePassword))
 
 Review comment:
   Add curly braces.

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


With regards,
Apache Git Services

Reply via email to