Refactoring Cleanup
This commit is contained in:
@@ -189,9 +189,7 @@ namespace Game
|
||||
|
||||
public AccountOpResult ChangeEmail(uint accountId, string newEmail)
|
||||
{
|
||||
string username;
|
||||
|
||||
if (!GetName(accountId, out username))
|
||||
if (!GetName(accountId, out _))
|
||||
return AccountOpResult.NameNotExist; // account doesn't exist
|
||||
|
||||
if (newEmail.Length > MaxEmailLength)
|
||||
@@ -207,9 +205,7 @@ namespace Game
|
||||
|
||||
public AccountOpResult ChangeRegEmail(uint accountId, string newEmail)
|
||||
{
|
||||
string username;
|
||||
|
||||
if (!GetName(accountId, out username))
|
||||
if (!GetName(accountId, out _))
|
||||
return AccountOpResult.NameNotExist; // account doesn't exist
|
||||
|
||||
if (newEmail.Length > MaxEmailLength)
|
||||
|
||||
Reference in New Issue
Block a user