From 95489939828fb2fdc2f52879f329ddc1403e34a4 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 4 May 2025 11:18:28 -0400 Subject: [PATCH] Tweak to previous commit for some build versions --- CHANGELIST.md | 1 + MPF.CLI/Program.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index cac17210..73346bc9 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -39,6 +39,7 @@ - Update to DIC 20250501 - Update RedumpLib to 1.6.6 - Pre-clean file path in CLI interactive mode +- Tweak to previous commit for some build versions ### 3.3.0 (2025-01-03) diff --git a/MPF.CLI/Program.cs b/MPF.CLI/Program.cs index d2eaebdc..ad9ee1ca 100644 --- a/MPF.CLI/Program.cs +++ b/MPF.CLI/Program.cs @@ -335,8 +335,8 @@ namespace MPF.CLI Console.Write("> "); result = Console.ReadLine(); - if (result.Length > 0) - result = Path.GetFullPath(result); + if (!string.IsNullOrEmpty(result)) + result = Path.GetFullPath(result!); opts.FilePath = result; goto root;