C# 9 Cleanup (#325)

- [X] Removes EventArgs - not needed
- [X] Merges sequential checks
- [X] Removes redundant type declarations
This commit is contained in:
Kamron Batman 2020-11-27 00:29:21 -08:00 committed by GitHub
parent 351611a23a
commit 3551d962f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
417 changed files with 2209 additions and 2213 deletions

View file

@ -3681,7 +3681,7 @@ namespace Server.Gumps
{
index -= 4;
if (m_List != null && index < m_List.Count)
if (index < m_List?.Count)
{
from.SendGump(
new AdminGump(from, AdminGumpPage.FirewallInfo, 0, null, null, m_List[index])
@ -3889,7 +3889,7 @@ namespace Server.Gumps
}
case 8:
{
if (m_List != null && index < m_List.Count)
if (index < m_List?.Count)
{
if (!(m_State is Account a))
{
@ -3933,7 +3933,7 @@ namespace Server.Gumps
}
case 9:
{
if (m_List != null && index < m_List.Count)
if (index < m_List?.Count)
{
if (m_PageType == AdminGumpPage.AccountDetails_Access_ClientIPs)
{
@ -3984,7 +3984,7 @@ namespace Server.Gumps
}
case 10:
{
if (m_List != null && index < m_List.Count)
if (index < m_List?.Count)
{
if (m_PageType == AdminGumpPage.AccountDetails_Access_ClientIPs)
{