Nullify ChatChannelExtensions

This commit is contained in:
Jordan Dominion
2023-11-24 15:23:44 -05:00
parent a9a82f0bee
commit a4e1b8ea76
@@ -4,8 +4,6 @@ using System.Linq;
using Tgstation.Server.Host.Models;
#nullable disable
namespace Tgstation.Server.Host.Extensions
{
/// <summary>
@@ -25,7 +23,7 @@ namespace Tgstation.Server.Host.Extensions
/// </summary>
/// <param name="chatChannel">The <see cref="ChatChannel"/> to retrieve information from.</param>
/// <returns>The IRC channel key stored in the <paramref name="chatChannel"/> if it exists, <see langword="null"/> otherwise.</returns>
public static string GetIrcChannelKey(this ChatChannel chatChannel)
public static string? GetIrcChannelKey(this ChatChannel chatChannel)
{
var splits = GetIrcChannelSplits(chatChannel);
if (splits.Count < 2)