mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 18:53:27 +01:00
Enable nullable reference types for MediaBrowser.Controller
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
@@ -12,7 +13,8 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
/// <param name="day">The day.</param>
|
||||
/// <returns>List{DayOfWeek}.</returns>
|
||||
public static DayOfWeek[] GetAirDays(string day)
|
||||
[return: NotNullIfNotNull("day")]
|
||||
public static DayOfWeek[] GetAirDays(string? day)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(day))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user