Skip to content

Commit 4b918a0

Browse files
committed
cleanup
1 parent bf7853e commit 4b918a0

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Polyfill/Polyfill_IEnumerable_MaxBy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static partial class Polyfill
6565
}
6666
else
6767
{
68-
ThrowHelper.ThrowNoElementsException();
68+
ThrowNoElementsException();
6969
}
7070
}
7171

src/Polyfill/Polyfill_IEnumerable_MinBy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static partial class Polyfill
6666
}
6767
else
6868
{
69-
ThrowHelper.ThrowNoElementsException();
69+
ThrowNoElementsException();
7070
}
7171
}
7272

src/Polyfill/Polyfill_IEnumerable_ThrowHelper.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ namespace Polyfills;
55

66
static partial class Polyfill
77
{
8-
private static class ThrowHelper
9-
{
10-
public static void ThrowNoElementsException() =>
11-
throw new System.InvalidOperationException("Sequence contains no elements");
12-
}
8+
static void ThrowNoElementsException() =>
9+
throw new System.InvalidOperationException("Sequence contains no elements");
1310
}

0 commit comments

Comments
 (0)