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