[Modify] Polish it
This commit is contained in:
parent
b03ca4f56e
commit
1229f29122
@ -1949,7 +1949,12 @@ namespace WebSocketSharp
|
|||||||
/// </param>
|
/// </param>
|
||||||
public static void Times (this ulong n, Action<ulong> action)
|
public static void Times (this ulong n, Action<ulong> action)
|
||||||
{
|
{
|
||||||
if (n > 0 && action != null)
|
if (n == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (action == null)
|
||||||
|
return;
|
||||||
|
|
||||||
for (ulong i = 0; i < n; i++)
|
for (ulong i = 0; i < n; i++)
|
||||||
action (i);
|
action (i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user