visual studio recommended cleaner if statements

This commit is contained in:
Ozzatron committed 2022-03-10 14:29:42 -05:00
1 parent 9e52b4bfb3
commit f2d079449a
1 file changed
+1 -4
+1 -4
View File
@@ -181,10 +181,7 @@ namespace CalamityMod
if (p is null)
return false;
CalamityPlayer modPlayer = p.Calamity();
if (modPlayer is null)
return false;
return modPlayer.cooldowns.ContainsKey(id);
return !(modPlayer is null) && modPlayer.cooldowns.ContainsKey(id);
}
/// <summary>