Use better code
This commit is contained in:
parent
608e7a99bc
commit
75c8a8ced4
32 changed files with 77 additions and 105 deletions
|
|
@ -253,8 +253,7 @@ namespace TShockAPI
|
|||
/// <returns></returns>
|
||||
public static NetItem Parse(string str)
|
||||
{
|
||||
if (str == null)
|
||||
throw new ArgumentNullException("str");
|
||||
ArgumentNullException.ThrowIfNull(str);
|
||||
|
||||
string[] comp = str.Split(',');
|
||||
if (comp.Length != 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue