Changed all == null to is null and all !(* == null) to * is not null

This commit is contained in:
Kwoth
2021-06-19 08:24:09 +02:00
parent 81406cb46a
commit d8c7cdc7f4
125 changed files with 367 additions and 366 deletions

View File

@@ -59,7 +59,7 @@ namespace NadekoBot.Modules.Games.Services
var channel = msg.Channel as ITextChannel;
cleverbot = null;
if (channel == null)
if (channel is null)
return null;
if (!ChatterBotGuilds.TryGetValue(channel.Guild.Id, out Lazy<IChatterBotSession> lazyCleverbot))
@@ -110,7 +110,7 @@ namespace NadekoBot.Modules.Games.Services
try
{
var message = PrepareMessage(usrMsg, out IChatterBotSession cbs);
if (message == null || cbs == null)
if (message is null || cbs is null)
return false;
var pc = _perms.GetCacheFor(guild.Id);