visual studio recommended cleaner if statements
This commit is contained in:
1 parent
9e52b4bfb3
commit
f2d079449a
1 file changed
+1
-4
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user