Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 25, 2024
1 parent bf7853e commit 4b918a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Polyfill/Polyfill_IEnumerable_MaxBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static partial class Polyfill
}
else
{
ThrowHelper.ThrowNoElementsException();
ThrowNoElementsException();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Polyfill/Polyfill_IEnumerable_MinBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static partial class Polyfill
}
else
{
ThrowHelper.ThrowNoElementsException();
ThrowNoElementsException();
}
}

Expand Down
7 changes: 2 additions & 5 deletions src/Polyfill/Polyfill_IEnumerable_ThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ namespace Polyfills;

static partial class Polyfill
{
private static class ThrowHelper
{
public static void ThrowNoElementsException() =>
throw new System.InvalidOperationException("Sequence contains no elements");
}
static void ThrowNoElementsException() =>
throw new System.InvalidOperationException("Sequence contains no elements");
}

0 comments on commit 4b918a0

Please sign in to comment.