[Modify] Polish it

This commit is contained in:
sta 2017-12-14 15:42:55 +09:00
parent 5e19058c40
commit e8ee51efa9

View File

@ -1863,7 +1863,10 @@ namespace WebSocketSharp
if (source == null)
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>