[Modify] Polish it

master
sta 6 years ago
parent b03ca4f56e
commit 1229f29122

@ -1949,9 +1949,14 @@ namespace WebSocketSharp
/// </param>
public static void Times (this ulong n, Action<ulong> action)
{
if (n > 0 && action != null)
for (ulong i = 0; i < n; i++)
action (i);
if (n == 0)
return;
if (action == null)
return;
for (ulong i = 0; i < n; i++)
action (i);
}
/// <summary>

Loading…
Cancel
Save