stevedlawrence commented on code in PR #1067:
URL: https://github.com/apache/daffodil/pull/1067#discussion_r1293699128


##########
daffodil-cli/src/main/scala/org/apache/daffodil/cli/Main.scala:
##########
@@ -226,14 +226,30 @@ class CLIConf(arguments: Array[String], stdout: 
PrintStream, stderr: PrintStream
   implicit def rootNSConverter = 
org.rogach.scallop.singleArgConverter[RefQName](qnameConvert _)
 
   implicit def fileResourceURIConverter = singleArgConverter[URI]((s: String) 
=> {
-    val file = new File(s)
-    val uri =
-      if (file.isFile()) {
-        Some(file.toURI)
-      } else {
-        Misc.getResourceRelativeOption(s, None)
+    val optURI = None

Review Comment:
   Yeah, I wasn't too sure about the `None.orElse{}.orElse{}.orElse{} pattern. 
It felt kindof nice since it removed a bunch of if-else statements, but I'm not 
sure we use it anywhere else, so it does feel off. I'm definitely open to other 
suggestions, but will add a comment explaining this if there's nothing better.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to