[Modify] Polish it

This commit is contained in:
sta 2017-09-30 14:21:42 +09:00
parent 678845433b
commit 86cd0ec022

View File

@ -197,11 +197,14 @@ namespace WebSocketSharp
: stream.ToByteArray ();
}
internal static bool Contains<T> (this IEnumerable<T> source, Func<T, bool> condition)
internal static bool Contains<T> (
this IEnumerable<T> source, Func<T, bool> condition
)
{
foreach (T elm in source)
foreach (T elm in source) {
if (condition (elm))
return true;
}
return false;
}