mbeckerle commented on code in PR #40:
URL: https://github.com/apache/daffodil-sbt/pull/40#discussion_r1670681457


##########
src/main/scala/org/apache/daffodil/DaffodilSaver.scala:
##########
@@ -40,8 +40,16 @@ object DaffodilSaver {
    */
   def main(args: Array[String]): Unit = {
 
-    if (args.length != 4) System.err.println(s"[error] four arguments are 
required")
+    if (args.length != 4) {
+      System.err.println(s"four arguments are required")

Review Comment:
   I would suggest just define an Assert object and add an invariant or 
invariantFailed method that does what this code does now. That makes it self 
documenting what is going on. 



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