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

@@ -113,7 +113,7 @@ namespace NadekoBot.Modules.Administration
return;
}
if (!(punishTime is null))
if (punishTime is not null)
{
if (!_service.IsDurationAllowed(action))
{
@@ -128,7 +128,7 @@ namespace NadekoBot.Modules.Administration
var stats = await _service.StartAntiRaidAsync(ctx.Guild.Id, userThreshold, seconds,
action, time).ConfigureAwait(false);
if (stats == null)
if (stats is null)
{
return;
}
@@ -185,7 +185,7 @@ namespace NadekoBot.Modules.Administration
if (messageCount < 2 || messageCount > 10)
return;
if (!(timeData is null))
if (timeData is not null)
{
if (!_service.IsDurationAllowed(action))
{
@@ -244,7 +244,7 @@ namespace NadekoBot.Modules.Administration
.WithValue(GetAntiRaidString(raid).TrimTo(1024))
.WithIsInline(true));
if (!(alt is null))
if (alt is not null)
embed.AddField("Anti-Alt", GetAntiAltString(alt), true);
await ctx.Channel.EmbedAsync(embed).ConfigureAwait(false);