steveloughran commented on a change in pull request #1842: HADOOP-16730 : ABFS: 
Add Authorizer Interface
URL: https://github.com/apache/hadoop/pull/1842#discussion_r382641208
 
 

 ##########
 File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java
 ##########
 @@ -255,6 +283,11 @@ public AbfsRestOperation createPath(final String path, 
final boolean isFile, fin
     final AbfsUriQueryBuilder abfsUriQueryBuilder = 
createDefaultUriQueryBuilder();
     abfsUriQueryBuilder.addQuery(QUERY_PARAM_RESOURCE, isFile ? FILE : 
DIRECTORY);
 
+    if (authType == AuthType.SAS) {
+      String operation = isFile ? SASTokenProvider.CREATEFILE_OPERATION : 
SASTokenProvider.MKDIR_OPERATION;
 
 Review comment:
   prefer
   ```
   String operation = isFile
       ? SASTokenProvider.CREATEFILE_OPERATION
       : SASTokenProvider.MKDIR_OPERATION;
         
   ```

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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to