aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2026-03-24 22:31:17 -0400
committerJoshua M. Boniface <joshua@boniface.me>2026-03-24 22:31:17 -0400
commitfec78c8448bd19f96460d853732cf24812443b70 (patch)
tree259d5d5ccaa296b3b0d5cf40af782b121d993306
parentc22933260b1d9b8cd97980c00a70f53bbaaf4f54 (diff)
Lint for the Linter Gods
-rw-r--r--Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs
index d3f94ad0bd..13c7895f83 100644
--- a/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs
+++ b/Jellyfin.Server.Implementations/StorageHelpers/StorageHelper.cs
@@ -43,7 +43,7 @@ public static class StorageHelper
// This is required because simply calling `DriveInfo` on a path returns that path as
// the Name and RootDevice, which is not at all how this should work.
var allDrives = DriveInfo.GetDrives();
- DriveInfo? bestMatch = null;
+ DriveInfo? bestMatch = null;
foreach (DriveInfo d in allDrives)
{
if (resolvedPath.StartsWith(d.RootDirectory.FullName, StringComparison.InvariantCultureIgnoreCase) &&
@@ -52,11 +52,12 @@ public static class StorageHelper
bestMatch = d;
}
}
-
- if (bestMatch is null) {
+
+ if (bestMatch is null)
+ {
throw new InvalidOperationException($"The path `{path}` has no matching parent device. Space check invalid.");
}
-
+
return new FolderStorageInfo()
{
Path = path,