[Modify] Polish it

This commit is contained in:
sta 2019-09-19 21:06:38 +09:00
parent 7e86a8d773
commit cd890d2eb4

View File

@ -1923,7 +1923,12 @@ namespace WebSocketSharp
/// </param> /// </param>
public static void Times (this uint n, Action<uint> action) public static void Times (this uint n, Action<uint> action)
{ {
if (n > 0 && action != null) if (n == 0)
return;
if (action == null)
return;
for (uint i = 0; i < n; i++) for (uint i = 0; i < n; i++)
action (i); action (i);
} }