bharatviswa504 commented on a change in pull request #941:
URL: https://github.com/apache/hadoop-ozone/pull/941#discussion_r427665320



##########
File path: 
hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/OFSPath.java
##########
@@ -78,8 +88,8 @@ private void initOFSPath(String pathStr) {
     // pathStr should not have authority
     try {
       URI uri = new URI(pathStr);
-      String authority = uri.getAuthority();
-      if (authority != null && !authority.isEmpty()) {
+      String auth = uri.getAuthority();

Review comment:
       Thinking more, do we need this, from above uri, we can get authority and 
check if it is empty or nulll and then throw error. So, in this way, we don't 
need to convert path to URI again.




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to