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;
#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());