From 34586b622f2c0a2d451a640ec75dda49bccda7e0 Mon Sep 17 00:00:00 2001 From: Geoffroy BONNEVILLE Date: Mon, 23 Mar 2020 19:34:44 +0100 Subject: [PATCH] Code cleanup --- ModernKeePassLib/Utility/UrlUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ModernKeePassLib/Utility/UrlUtil.cs b/ModernKeePassLib/Utility/UrlUtil.cs index 1231dec..6982d33 100644 --- a/ModernKeePassLib/Utility/UrlUtil.cs +++ b/ModernKeePassLib/Utility/UrlUtil.cs @@ -493,16 +493,16 @@ namespace ModernKeePassLib.Utility } string str; +#if ModernKeePassLib try { -#if ModernKeePassLib var dirT = StorageFolder.GetFolderFromPathAsync( strPath).GetResults(); str = dirT.Path; + } #else try { str = Path.GetFullPath(strPath); } #endif - } catch(Exception) { Debug.Assert(false); return strPath; } Debug.Assert((str.IndexOf("\\..\\") < 0) || NativeLib.IsUnix());