mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Nullify ChatChannelExtensions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user