[Modify] Polish it

master
sta 8 years ago
parent 5e19058c40
commit e8ee51efa9

@ -1863,7 +1863,10 @@ namespace WebSocketSharp
if (source == null) if (source == null)
throw new ArgumentNullException ("source"); throw new ArgumentNullException ("source");
return source.Length > 1 && !sourceOrder.IsHostOrder () ? source.Reverse () : source; if (source.Length < 2)
return source;
return !sourceOrder.IsHostOrder () ? source.Reverse () : source;
} }
/// <summary> /// <summary>

Loading…
Cancel
Save