mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-01 19:33:28 +02:00
Remove extra argument
This commit is contained in:
parent
a9a5fcde81
commit
f5613add1a
|
@ -25,6 +25,6 @@ namespace Jellyfin.Api.Attributes
|
||||||
/// <param name="template">The route template. May not be null.</param>
|
/// <param name="template">The route template. May not be null.</param>
|
||||||
public HttpSubscribeAttribute(string template)
|
public HttpSubscribeAttribute(string template)
|
||||||
: base(_supportedMethods, template)
|
: base(_supportedMethods, template)
|
||||||
=> ArgumentNullException.ThrowIfNull(template, nameof(template));
|
=> ArgumentNullException.ThrowIfNull(template);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,6 @@ namespace Jellyfin.Api.Attributes
|
||||||
/// <param name="template">The route template. May not be null.</param>
|
/// <param name="template">The route template. May not be null.</param>
|
||||||
public HttpUnsubscribeAttribute(string template)
|
public HttpUnsubscribeAttribute(string template)
|
||||||
: base(_supportedMethods, template)
|
: base(_supportedMethods, template)
|
||||||
=> ArgumentNullException.ThrowIfNull(template, nameof(template));
|
=> ArgumentNullException.ThrowIfNull(template);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,7 +145,7 @@ namespace Jellyfin.Drawing.Skia
|
||||||
/// <exception cref="SkiaCodecException">The file at the specified path could not be used to generate a codec.</exception>
|
/// <exception cref="SkiaCodecException">The file at the specified path could not be used to generate a codec.</exception>
|
||||||
public string GetImageBlurHash(int xComp, int yComp, string path)
|
public string GetImageBlurHash(int xComp, int yComp, string path)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(path, nameof(path));
|
ArgumentNullException.ThrowIfNull(path);
|
||||||
|
|
||||||
if (path.Length == 0)
|
if (path.Length == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,8 +69,8 @@ namespace Jellyfin.Server.Infrastructure
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue? range, long rangeLength)
|
protected override Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue? range, long rangeLength)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(context, nameof(context));
|
ArgumentNullException.ThrowIfNull(context);
|
||||||
ArgumentNullException.ThrowIfNull(result, nameof(result));
|
ArgumentNullException.ThrowIfNull(result);
|
||||||
|
|
||||||
if (range != null && rangeLength == 0)
|
if (range != null && rangeLength == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Entities
|
||||||
/// <param name="url">Trailer URL.</param>
|
/// <param name="url">Trailer URL.</param>
|
||||||
public static void AddTrailerUrl(this BaseItem item, string url)
|
public static void AddTrailerUrl(this BaseItem item, string url)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(url, nameof(url));
|
ArgumentNullException.ThrowIfNull(url);
|
||||||
|
|
||||||
if (url.Length == 0)
|
if (url.Length == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue