mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
fix SA1119
This commit is contained in:
@@ -225,7 +225,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
return null;
|
||||
}
|
||||
|
||||
return (totalProgresses / foldersWithProgress);
|
||||
return totalProgresses / foldersWithProgress;
|
||||
}
|
||||
|
||||
protected override bool RefreshLinkedChildren(IEnumerable<FileSystemMetadata> fileSystemChildren)
|
||||
|
||||
@@ -480,7 +480,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
innerProgress.RegisterAction(p =>
|
||||
{
|
||||
double innerPercent = currentInnerPercent;
|
||||
innerPercent += p / (count);
|
||||
innerPercent += p / count;
|
||||
progress.Report(innerPercent);
|
||||
});
|
||||
|
||||
@@ -556,7 +556,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
innerProgress.RegisterAction(p =>
|
||||
{
|
||||
double innerPercent = currentInnerPercent;
|
||||
innerPercent += p / (count);
|
||||
innerPercent += p / count;
|
||||
progress.Report(innerPercent);
|
||||
});
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace MediaBrowser.Controller.Library
|
||||
|
||||
public LibraryOptions GetLibraryOptions()
|
||||
{
|
||||
return LibraryOptions ?? (LibraryOptions = (Parent == null ? new LibraryOptions() : BaseItem.LibraryManager.GetLibraryOptions(Parent)));
|
||||
return LibraryOptions ?? (LibraryOptions = Parent == null ? new LibraryOptions() : BaseItem.LibraryManager.GetLibraryOptions(Parent));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user