From 7b9ba65059a28063060ed81e41715dcc9bc9e962 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Sun, 11 Feb 2018 13:51:32 +0100
Subject: [PATCH] Simplify code for supplying commandline parameters.

---
 ATxConfigTest/AutoTxConfigTest.cs | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/ATxConfigTest/AutoTxConfigTest.cs b/ATxConfigTest/AutoTxConfigTest.cs
index c33a680..e7ce75c 100644
--- a/ATxConfigTest/AutoTxConfigTest.cs
+++ b/ATxConfigTest/AutoTxConfigTest.cs
@@ -14,13 +14,8 @@ namespace ATxConfigTest
 
         private static void Main(string[] args) {
             var baseDir = AppDomain.CurrentDomain.BaseDirectory;
-
-            try {
+            if (args.Length > 0)
                 baseDir = args[0];
-            }
-            catch {
-                // ignored (use default value from above)
-            }
 
             var configPath = Path.Combine(baseDir, "configuration.xml");
             var statusPath = Path.Combine(baseDir, "status.xml");
-- 
GitLab