mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 15:40:20 -04:00
Code cleanup
This commit is contained in:
@@ -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());
|
||||||
|
Reference in New Issue
Block a user