diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 79ec80f9..dddbc299 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1923,9 +1923,14 @@ namespace WebSocketSharp /// public static void Times (this uint n, Action 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); } ///