From 1229f2912292b90df8cd2f8832f696f9ca0bf847 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 20 Sep 2019 21:54:21 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Ext.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 6bf75bad..1098c4f7 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1949,9 +1949,14 @@ namespace WebSocketSharp /// public static void Times (this ulong n, Action 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); } ///