[Modify] Polish it
This commit is contained in:
parent
e147aff46a
commit
c4cb334b93
@ -1833,8 +1833,14 @@ namespace WebSocketSharp
|
|||||||
/// </param>
|
/// </param>
|
||||||
public static void Times (this uint n, Action action)
|
public static void Times (this uint n, Action action)
|
||||||
{
|
{
|
||||||
if (n > 0 && action != null)
|
if (n <= 0)
|
||||||
((ulong) n).times (action);
|
return;
|
||||||
|
|
||||||
|
if (action == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (uint i = 0; i < n; i++)
|
||||||
|
action ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user