Clarify exception type in path resolution catch block

Updated the catch block in DataLocation.cs to explicitly use System.Exception instead of Exception when handling path resolution errors. This improves code clarity while maintaining the same error handling logic for ArgumentException, NotSupportedException, and PathTooLongException.
This commit is contained in:
Jack251970 2026-02-21 20:18:09 +08:00
parent b923c40054
commit 9b0a50376c

View file

@ -64,7 +64,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
{
return Path.GetFullPath(Path.Combine(Constant.ProgramDirectory, path));
}
catch (Exception ex) when (ex is ArgumentException ||
catch (System.Exception ex) when (ex is ArgumentException ||
ex is NotSupportedException ||
ex is PathTooLongException)
{