[Modify] Polish it

This commit is contained in:
sta 2019-09-12 20:11:01 +09:00
parent bdb759c4e1
commit 9c47c1e861

View File

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