Skip to content

Commit ff79e37

Browse files
committed
Fix bracket formatting
1 parent 0a20856 commit ff79e37

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Source/Shared/Extensions/CollectionEqualityExtensions.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
using System.Collections.Generic;
33
using System.Linq;
44

5-
namespace Exceptionless
6-
{
7-
internal static class CollectionEqualityExtensions
8-
{
5+
namespace Exceptionless {
6+
internal static class CollectionEqualityExtensions {
97
public static bool CollectionEquals<T>(this IEnumerable<T> source, IEnumerable<T> other) {
108
var sourceEnumerator = source.GetEnumerator();
119
var otherEnumerator = other.GetEnumerator();
@@ -29,8 +27,7 @@ public static bool CollectionEquals<T>(this IEnumerable<T> source, IEnumerable<T
2927
return true;
3028
}
3129

32-
public static bool CollectionEquals<TValue>(this IDictionary<string, TValue> source, IDictionary<string, TValue> other)
33-
{
30+
public static bool CollectionEquals<TValue>(this IDictionary<string, TValue> source, IDictionary<string, TValue> other) {
3431
if (source.Count != other.Count) {
3532
return false;
3633
}
@@ -55,7 +52,8 @@ public static int GetCollectionHashCode<T>(this IEnumerable<T> source) {
5552
int hashCode = assemblyQualifiedName == null ? 0 : assemblyQualifiedName.GetHashCode();
5653

5754
foreach (var item in source) {
58-
if(item == null) continue;
55+
if (item == null)
56+
continue;
5957

6058
unchecked {
6159
hashCode = (hashCode * 397) ^ item.GetHashCode();
@@ -64,8 +62,7 @@ public static int GetCollectionHashCode<T>(this IEnumerable<T> source) {
6462
return hashCode;
6563
}
6664

67-
public static int GetCollectionHashCode<TValue>(this IDictionary<string, TValue> source)
68-
{
65+
public static int GetCollectionHashCode<TValue>(this IDictionary<string, TValue> source) {
6966
var assemblyQualifiedName = typeof(TValue).AssemblyQualifiedName;
7067
int hashCode = assemblyQualifiedName == null ? 0 : assemblyQualifiedName.GetHashCode();
7168

0 commit comments

Comments
 (0)