Code cleanup

This commit is contained in:
Geoffroy BONNEVILLE
2020-03-23 19:34:44 +01:00
parent 6a90a2876a
commit 34586b622f

View File

@@ -493,16 +493,16 @@ namespace ModernKeePassLib.Utility
} }
string str; string str;
#if ModernKeePassLib
try try
{ {
#if ModernKeePassLib
var dirT = StorageFolder.GetFolderFromPathAsync( var dirT = StorageFolder.GetFolderFromPathAsync(
strPath).GetResults(); strPath).GetResults();
str = dirT.Path; str = dirT.Path;
}
#else #else
try { str = Path.GetFullPath(strPath); } try { str = Path.GetFullPath(strPath); }
#endif #endif
}
catch(Exception) { Debug.Assert(false); return strPath; } catch(Exception) { Debug.Assert(false); return strPath; }
Debug.Assert((str.IndexOf("\\..\\") < 0) || NativeLib.IsUnix()); Debug.Assert((str.IndexOf("\\..\\") < 0) || NativeLib.IsUnix());