Fixed: (Core) Use MinBy and MaxBy

This commit is contained in:
Bogdan
2023-04-09 20:34:08 +03:00
parent e5ccbaaf24
commit a184bb0784
2 changed files with 3 additions and 8 deletions
+1 -2
View File
@@ -478,8 +478,7 @@ namespace NzbDrone.Common.Disk
return mounts.Where(drive => drive.RootDirectory.PathEquals(path) ||
drive.RootDirectory.IsParentPath(path))
.OrderByDescending(drive => drive.RootDirectory.Length)
.FirstOrDefault();
.MaxBy(drive => drive.RootDirectory.Length);
}
catch (Exception ex)
{