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;