We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1395543 commit 8861508Copy full SHA for 8861508
CollapseLauncher/Classes/GameManagement/Versioning/GameVersionBase.GameState.cs
@@ -263,15 +263,9 @@ protected virtual bool IsDiskPartitionExist(string? path)
263
{
264
try
265
266
- ReadOnlySpan<char> pathRoot = Path.GetPathRoot(path);
267
- if (pathRoot.IsEmpty)
268
- {
269
- return false;
270
- }
271
-
272
- string pathRootStr = pathRoot.ToString();
273
- // Return from Directory.Exists() since the IsReady property use the same method.
274
- return Directory.Exists(pathRootStr);
+ var pathRoot = Path.GetPathRoot(path);
+ return !string.IsNullOrEmpty(pathRoot) && Directory.Exists(pathRoot);
+ // Return from Directory.Exists() since the IsReady property use the same method.
275
}
276
catch (Exception)
277
0 commit comments