"Brace" for impact with these Important changes
Apparently the convention is UpperCamel for private functions too.
Fixed a stray brace that caused people to brace for a sudden evisceration of limbs.
Use Int32.Parse instead of Convert.ToInt32, because Microsoft exposes public
APIs they say not to use. 👏
This commit is contained in:
parent
b91f0ff7b7
commit
b34c00107c
2 changed files with 14 additions and 6 deletions
|
|
@ -994,7 +994,8 @@ namespace TShockAPI
|
|||
var user = new User();
|
||||
|
||||
user.Name = args.Parameters[1];
|
||||
try {
|
||||
try
|
||||
{
|
||||
user.CreateBCryptHash(args.Parameters[2]);
|
||||
}
|
||||
catch (ArgumentOutOfRangeException)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue