Skip to content

Commit 86cd0ec

Browse files
committed
[Modify] Polish it
1 parent 6788454 commit 86cd0ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

websocket-sharp/Ext.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,14 @@ internal static byte[] CompressToArray (this Stream stream, CompressionMethod me
197197
: stream.ToByteArray ();
198198
}
199199

200-
internal static bool Contains<T> (this IEnumerable<T> source, Func<T, bool> condition)
200+
internal static bool Contains<T> (
201+
this IEnumerable<T> source, Func<T, bool> condition
202+
)
201203
{
202-
foreach (T elm in source)
204+
foreach (T elm in source) {
203205
if (condition (elm))
204206
return true;
207+
}
205208

206209
return false;
207210
}

0 commit comments

Comments
 (0)