[Modify] Polish it

master
sta 6 years ago
parent b03ca4f56e
commit 1229f29122

@ -1949,7 +1949,12 @@ namespace WebSocketSharp
/// </param>
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++)
action (i);
}

Loading…
Cancel
Save